python/build/autotools.py: use toolchain.arflags
This commit is contained in:
parent
740cc8ce49
commit
22eccaa64f
@ -100,6 +100,7 @@ class AndroidNdkToolchain:
|
|||||||
common_flags += ' -fvisibility=hidden -fdata-sections -ffunction-sections'
|
common_flags += ' -fvisibility=hidden -fdata-sections -ffunction-sections'
|
||||||
|
|
||||||
self.ar = os.path.join(llvm_bin, 'llvm-ar')
|
self.ar = os.path.join(llvm_bin, 'llvm-ar')
|
||||||
|
self.arflags = 'rcs'
|
||||||
self.ranlib = os.path.join(llvm_bin, 'llvm-ranlib')
|
self.ranlib = os.path.join(llvm_bin, 'llvm-ranlib')
|
||||||
self.nm = os.path.join(llvm_bin, 'llvm-nm')
|
self.nm = os.path.join(llvm_bin, 'llvm-nm')
|
||||||
self.strip = os.path.join(llvm_bin, 'llvm-strip')
|
self.strip = os.path.join(llvm_bin, 'llvm-strip')
|
||||||
|
@ -45,6 +45,7 @@ class AutotoolsProject(MakeProject):
|
|||||||
'LDFLAGS=' + toolchain.ldflags + ' ' + self.ldflags,
|
'LDFLAGS=' + toolchain.ldflags + ' ' + self.ldflags,
|
||||||
'LIBS=' + toolchain.libs + ' ' + self.libs,
|
'LIBS=' + toolchain.libs + ' ' + self.libs,
|
||||||
'AR=' + toolchain.ar,
|
'AR=' + toolchain.ar,
|
||||||
|
'ARFLAGS=' + toolchain.arflags,
|
||||||
'RANLIB=' + toolchain.ranlib,
|
'RANLIB=' + toolchain.ranlib,
|
||||||
'STRIP=' + toolchain.strip,
|
'STRIP=' + toolchain.strip,
|
||||||
'--host=' + toolchain.arch,
|
'--host=' + toolchain.arch,
|
||||||
|
@ -48,6 +48,7 @@ class CrossGccToolchain:
|
|||||||
self.cc = os.path.join(toolchain_bin, arch + '-gcc')
|
self.cc = os.path.join(toolchain_bin, arch + '-gcc')
|
||||||
self.cxx = os.path.join(toolchain_bin, arch + '-g++')
|
self.cxx = os.path.join(toolchain_bin, arch + '-g++')
|
||||||
self.ar = os.path.join(toolchain_bin, arch + '-ar')
|
self.ar = os.path.join(toolchain_bin, arch + '-ar')
|
||||||
|
self.arflags = 'rcs'
|
||||||
self.ranlib = os.path.join(toolchain_bin, arch + '-ranlib')
|
self.ranlib = os.path.join(toolchain_bin, arch + '-ranlib')
|
||||||
self.nm = os.path.join(toolchain_bin, arch + '-nm')
|
self.nm = os.path.join(toolchain_bin, arch + '-nm')
|
||||||
self.strip = os.path.join(toolchain_bin, arch + '-strip')
|
self.strip = os.path.join(toolchain_bin, arch + '-strip')
|
||||||
|
Loading…
Reference in New Issue
Block a user