Android.mk: Build android SDL2.so with `-Wl,--no-undefined`
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_LDFLAGS := -Wl,--no-undefined
|
||||
|
||||
ifeq ($(NDK_DEBUG),1)
|
||||
cmd-strip :=
|
||||
endif
|
||||
|
@ -100,6 +102,9 @@ LOCAL_MODULE := SDL2_static
|
|||
LOCAL_MODULE_FILENAME := libSDL2
|
||||
|
||||
LOCAL_LDLIBS :=
|
||||
|
||||
LOCAL_LDFLAGS :=
|
||||
|
||||
LOCAL_EXPORT_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
|
Loading…
Reference in New Issue