Skip to content

Commit

Permalink
android/build.py: add -Wl,--exclude-libs=ALL
Browse files Browse the repository at this point in the history
Don't export the symbols of all those static libraries.  Most
importantly, don't export the whole libc++ ABI.
  • Loading branch information
MaxKellermann committed Jan 12, 2020
1 parent 04101f3 commit ab41c16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions android/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def __init__(self, tarball_path, src_path, build_path,
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 = ''
Expand Down

0 comments on commit ab41c16

Please sign in to comment.