summaryrefslogtreecommitdiff
path: root/python/build/zlib.py
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-10-26 16:56:41 +0200
committerMax Kellermann <max@musicpd.org>2016-10-26 17:00:17 +0200
commitdb8b5dc6988f5f1f08ff21b8426bedc4ca56366b (patch)
tree9c1b13fa3effcf3f52c04a8df712cfbb9935c413 /python/build/zlib.py
parent2f56c61b4790e23a199787d585aeba93f44c6d92 (diff)
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.
Diffstat (limited to 'python/build/zlib.py')
-rw-r--r--python/build/zlib.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/build/zlib.py b/python/build/zlib.py
index 2ed140554..0518e770b 100644
--- a/python/build/zlib.py
+++ b/python/build/zlib.py
@@ -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)