Enable -Wl,--no-undefined for android and add extra -l flags
@@ -6298,9 +6298,7 @@ when ($MAPSMOBI_BUILD_TARGET && $OS_ANDROID) {
CFLAGS+=-DANDROID -fpic -D_GLIBCXX_USE_CXX11_ABI=0 -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -Wa,--noexecstack
CFLAGS+=-Qunused-arguments -Wno-unused-function -Wno-pessimizing-move -Wno-missing-field-initializers -Wno-missing-braces -Wno-unused-parameter -Wno-vexing-parse -Wno-sign-compare
- LDFLAGS+=-lc -lm -llog -Bsymbolic -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now
- # Unless the problem of build of opensll for Android platform is completely solved
- # -Wl,--no-undefined
+ LDFLAGS+=-lc -lm -llog -Bsymbolic -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -Wl,--no-undefined
when ($BT_RELEASE || $BT_RELWITHDEBINFO) {
CFLAGS+=-fomit-frame-pointer -fvisibility-inlines-hidden -ffunction-sections -fdata-sections -Oz
