From 28495550889377050ffb2afeb3dba166804df30d Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 27 Jun 2023 19:09:59 +0000 Subject: [PATCH] Compile native library with -fvisibility=hidden This avoids exposing the symbols of the used libraries like SQLite3 and reduces the library size. --- scripts/ndk-make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ndk-make.sh b/scripts/ndk-make.sh index d6700d8b3..c82146f04 100755 --- a/scripts/ndk-make.sh +++ b/scripts/ndk-make.sh @@ -39,7 +39,7 @@ set -e echo "starting time: `date`" -export CFLAGS="-fno-unwind-tables -fno-exceptions -fno-asynchronous-unwind-tables -fomit-frame-pointer" +export CFLAGS="-fno-unwind-tables -fno-exceptions -fno-asynchronous-unwind-tables -fomit-frame-pointer -fvisibility=hidden" : "${ANDROID_NDK_ROOT:=$ANDROID_NDK_HOME}" : "${ANDROID_NDK_ROOT:=$ANDROID_NDK}"