diff options
author | Max Kellermann <max@musicpd.org> | 2016-10-26 10:40:19 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-10-26 17:00:17 +0200 |
commit | 8380c3be02726c68d30bdcb7262bf1655f4d4558 (patch) | |
tree | d840dd65c6d1beacec75ff3b632e5268d1c1a8d2 /win32/build.py | |
parent | 6470bcda1996112a2f5089a7170f9c69857b19d1 (diff) |
python/build/autotools: pass RANLIB to configure
Fixes various static library linker failures ("bad extended name entry
at header"), because the wrong "ranlib" was used.
Diffstat (limited to 'win32/build.py')
-rwxr-xr-x | win32/build.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/build.py b/win32/build.py index 0914d78f7..36bfcd8e3 100755 --- a/win32/build.py +++ b/win32/build.py @@ -35,6 +35,7 @@ class CrossGccToolchain: self.cc = os.path.join(toolchain_bin, arch + '-gcc') self.cxx = os.path.join(toolchain_bin, arch + '-g++') self.ar = os.path.join(toolchain_bin, arch + '-ar') + self.ranlib = os.path.join(toolchain_bin, arch + '-ranlib') self.nm = os.path.join(toolchain_bin, arch + '-nm') self.strip = os.path.join(toolchain_bin, arch + '-strip') @@ -89,6 +90,7 @@ configure = [ 'LDFLAGS=' + toolchain.ldflags + ' -static', 'LIBS=' + toolchain.libs, 'AR=' + toolchain.ar, + 'RANLIB=' + toolchain.ranlib, 'STRIP=' + toolchain.strip, '--host=' + toolchain.arch, '--prefix=' + toolchain.install_prefix, |