android/build.py: pass architecture/CPU flags to the linker

This commit is contained in:
Max Kellermann 2016-10-26 12:00:49 +02:00
parent db8b5dc698
commit 4bbc43d91a
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class AndroidNdkToolchain:
self.cflags = '-Os -g ' + common_flags
self.cxxflags = '-Os -g ' + common_flags
self.cppflags = '--sysroot=' + self.sysroot + ' -isystem ' + os.path.join(install_prefix, 'include')
self.ldflags = '--sysroot=' + self.sysroot + ' -L' + os.path.join(install_prefix, 'lib')
self.ldflags = '--sysroot=' + self.sysroot + ' ' + common_flags + ' -L' + os.path.join(install_prefix, 'lib')
self.libs = ''
self.is_arm = self.ndk_arch == 'arm'