From ab41c16eb50535c672a1ce78f7f68181baa8f39a Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@musicpd.org>
Date: Sun, 12 Jan 2020 12:47:31 +0100
Subject: [PATCH] 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.
---
 android/build.py | 1 +
 1 file changed, 1 insertion(+)

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 = ''