python/build/autotools.py: use toolchain.arflags
This commit is contained in:
parent
10aec174d5
commit
b09a54b2c2
|
@ -100,6 +100,7 @@ class AndroidNdkToolchain:
|
|||
common_flags += ' -fvisibility=hidden -fdata-sections -ffunction-sections'
|
||||
|
||||
self.ar = os.path.join(llvm_bin, 'llvm-ar')
|
||||
self.arflags = 'rcs'
|
||||
self.ranlib = os.path.join(llvm_bin, 'llvm-ranlib')
|
||||
self.nm = os.path.join(llvm_bin, 'llvm-nm')
|
||||
self.strip = os.path.join(llvm_bin, 'llvm-strip')
|
||||
|
|
|
@ -45,6 +45,7 @@ class AutotoolsProject(MakeProject):
|
|||
'LDFLAGS=' + toolchain.ldflags + ' ' + self.ldflags,
|
||||
'LIBS=' + toolchain.libs + ' ' + self.libs,
|
||||
'AR=' + toolchain.ar,
|
||||
'ARFLAGS=' + toolchain.arflags,
|
||||
'RANLIB=' + toolchain.ranlib,
|
||||
'STRIP=' + toolchain.strip,
|
||||
'--host=' + toolchain.arch,
|
||||
|
|
|
@ -48,6 +48,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.arflags = 'rcs'
|
||||
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')
|
||||
|
|
Loading…
Reference in New Issue