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.
This commit is contained in:
Max Kellermann
2016-10-26 10:40:19 +02:00
parent 6470bcda19
commit 8380c3be02
4 changed files with 6 additions and 0 deletions

@ -78,6 +78,7 @@ class AndroidNdkToolchain:
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')
@ -142,6 +143,7 @@ configure = [
'LDFLAGS=' + toolchain.ldflags,
'LIBS=' + toolchain.libs,
'AR=' + toolchain.ar,
'RANLIB=' + toolchain.ranlib,
'STRIP=' + toolchain.strip,
'--host=' + toolchain.arch,
'--prefix=' + toolchain.install_prefix,