diff --git a/android/build.py b/android/build.py index aa4f8b193..509cf85a4 100755 --- a/android/build.py +++ b/android/build.py @@ -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') diff --git a/python/build/autotools.py b/python/build/autotools.py index cf9125439..46fbd273b 100644 --- a/python/build/autotools.py +++ b/python/build/autotools.py @@ -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, diff --git a/win32/build.py b/win32/build.py index f29d75302..494969792 100755 --- a/win32/build.py +++ b/win32/build.py @@ -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')