Compile native library with -fvisibility=hidden

This avoids exposing the symbols of the used libraries like SQLite3
and reduces the library size.
This commit is contained in:
link2xt 2023-06-27 19:09:59 +00:00
parent ebaa5f69c4
commit 2849555088

View file

@ -39,7 +39,7 @@
set -e set -e
echo "starting time: `date`" 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_HOME}"
: "${ANDROID_NDK_ROOT:=$ANDROID_NDK}" : "${ANDROID_NDK_ROOT:=$ANDROID_NDK}"