android/build.py: add -Wl,--exclude-libs=ALL

Don't export the symbols of all those static libraries.  Most
importantly, don't export the whole libc++ ABI.
This commit is contained in:
Max Kellermann 2020-01-12 12:47:31 +01:00
parent 04101f37b8
commit ab41c16eb5
1 changed files with 1 additions and 0 deletions

View File

@ -112,6 +112,7 @@ class AndroidNdkToolchain:
self.cxxflags = common_flags
self.cppflags = ' -isystem ' + os.path.join(install_prefix, 'include')
self.ldflags = ' -L' + os.path.join(install_prefix, 'lib') + \
' -Wl,--exclude-libs=ALL' + \
' ' + common_flags
self.ldflags = common_flags
self.libs = ''