We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53b46d6 commit 5d35e02Copy full SHA for 5d35e02
builds/android/android_build_helper.sh
@@ -328,8 +328,11 @@ function android_build_opts {
328
329
_android_build_opts_process_binaries
330
331
- # Since NDK r23 we don't need -lgcc due to LLVM being now the default
332
- if [ ! -x "${TOOLCHAIN_PATH}/${TOOLCHAIN_HOST}-ar" ]; then
+ if [ ${NDK_NUMBER} -ge 2700 ] ; then
+ # Since NDK r27 symbols like '__aeabi_xxx' are no more exported in the dynamic lib.
333
+ export ANDROID_BUILD_LIBS="-lc -ldl -lm -llog -static-libstdc++"
334
+ elif [ ${NDK_NUMBER} -ge 2300 ] ; then
335
+ # Since NDK r23 we don't need -lgcc due to LLVM being now the default.
336
export ANDROID_BUILD_LIBS="-lc -ldl -lm -llog -lc++_shared"
337
else
338
export ANDROID_BUILD_LIBS="-lc -lgcc -ldl -lm -llog -lc++_shared"
0 commit comments