python/build/zlib: don't use DESTDIR

DESTDIR is for installing to a chroot, but this is not one.  Instead,
we want real absolute paths in the pkg-config file.
This commit is contained in:
Max Kellermann 2016-10-26 16:56:41 +02:00
parent 2f56c61b47
commit db8b5dc698

View File

@ -1,4 +1,4 @@
import subprocess
import os.path, subprocess
from build.project import Project
@ -15,8 +15,8 @@ class ZlibProject(Project):
'PREFIX=' + toolchain.arch + '-',
'-j12',
'install',
'DESTDIR=' + toolchain.install_prefix + '/',
'INCLUDE_PATH=include',
'LIBRARY_PATH=lib',
'BINARY_PATH=bin', 'SHARED_MODE=1'],
'INCLUDE_PATH='+ os.path.join(toolchain.install_prefix, 'include'),
'LIBRARY_PATH=' + os.path.join(toolchain.install_prefix, 'lib'),
'BINARY_PATH=' + os.path.join(toolchain.install_prefix, 'bin'),
'SHARED_MODE=1'],
cwd=src, env=toolchain.env)