summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-01-12 12:47:31 +0100
committerMax Kellermann <max@musicpd.org>2020-01-12 12:47:40 +0100
commitab41c16eb50535c672a1ce78f7f68181baa8f39a (patch)
treeeb60f21b513062d89ea2335f23cce1bbf633a6e0
parent04101f37b820583387e3b93e3bdd50f791438e0e (diff)
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.
-rwxr-xr-xandroid/build.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/build.py b/android/build.py
index d587982cd..c48472546 100755
--- a/android/build.py
+++ b/android/build.py
@@ -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 = ''