mirror of https://github.com/encounter/SDL.git
Android.mk: Build android SDL2.so with `-Wl,--no-undefined`
This commit is contained in:
parent
70214ed3ed
commit
d76f0cc753
|
@ -81,6 +81,8 @@ LOCAL_CFLAGS += -Wno-unused-parameter -Wno-sign-compare
|
||||||
|
|
||||||
LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -lOpenSLES -llog -landroid
|
LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -lOpenSLES -llog -landroid
|
||||||
|
|
||||||
|
LOCAL_LDFLAGS := -Wl,--no-undefined
|
||||||
|
|
||||||
ifeq ($(NDK_DEBUG),1)
|
ifeq ($(NDK_DEBUG),1)
|
||||||
cmd-strip :=
|
cmd-strip :=
|
||||||
endif
|
endif
|
||||||
|
@ -100,6 +102,9 @@ LOCAL_MODULE := SDL2_static
|
||||||
LOCAL_MODULE_FILENAME := libSDL2
|
LOCAL_MODULE_FILENAME := libSDL2
|
||||||
|
|
||||||
LOCAL_LDLIBS :=
|
LOCAL_LDLIBS :=
|
||||||
|
|
||||||
|
LOCAL_LDFLAGS :=
|
||||||
|
|
||||||
LOCAL_EXPORT_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
|
LOCAL_EXPORT_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
|
||||||
|
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
|
Loading…
Reference in New Issue