Android.mk: Build android SDL2.so with `-Wl,--no-undefined`
diff --git a/Android.mk b/Android.mk
index 4308d40..ce67ae2 100644
--- a/Android.mk
+++ b/Android.mk
@@ -81,6 +81,8 @@ LOCAL_CFLAGS += -Wno-unused-parameter -Wno-sign-compare
LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -lOpenSLES -llog -landroid
+LOCAL_LDFLAGS := -Wl,--no-undefined
+
ifeq ($(NDK_DEBUG),1)
cmd-strip :=
endif
@@ -99,7 +101,10 @@ LOCAL_MODULE := SDL2_static
LOCAL_MODULE_FILENAME := libSDL2
-LOCAL_LDLIBS :=
+LOCAL_LDLIBS :=
+
+LOCAL_LDFLAGS :=
+
LOCAL_EXPORT_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
include $(BUILD_STATIC_LIBRARY)