Commit db8b5dc6 authored by Max Kellermann's avatar Max Kellermann

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.
parent 2f56c61b
import subprocess import os.path, subprocess
from build.project import Project from build.project import Project
...@@ -15,8 +15,8 @@ class ZlibProject(Project): ...@@ -15,8 +15,8 @@ class ZlibProject(Project):
'PREFIX=' + toolchain.arch + '-', 'PREFIX=' + toolchain.arch + '-',
'-j12', '-j12',
'install', 'install',
'DESTDIR=' + toolchain.install_prefix + '/', 'INCLUDE_PATH='+ os.path.join(toolchain.install_prefix, 'include'),
'INCLUDE_PATH=include', 'LIBRARY_PATH=' + os.path.join(toolchain.install_prefix, 'lib'),
'LIBRARY_PATH=lib', 'BINARY_PATH=' + os.path.join(toolchain.install_prefix, 'bin'),
'BINARY_PATH=bin', 'SHARED_MODE=1'], 'SHARED_MODE=1'],
cwd=src, env=toolchain.env) cwd=src, env=toolchain.env)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment