From 5fe05eb5a751dda4553e527b109851a25969830a Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Fri, 21 Dec 2012 09:25:56 +0800 Subject: [PATCH] Add -ldl for new stlport The new stlport in NDK r8d+ supports exception support via gabi++. The new gabi++ depends on dlopen, etc, meaning that we need to add -ldl for project links stlport with "-nostdlib -Wl,--no-undefined" (ie. all *.so in Android) Change-Id: I7321a075d2852a6a72f82f40bb24d64ec211cf39 --- native/jni/Android.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/native/jni/Android.mk b/native/jni/Android.mk index 567648f7a..874d10639 100644 --- a/native/jni/Android.mk +++ b/native/jni/Android.mk @@ -95,6 +95,7 @@ LOCAL_MODULE_TAGS := optional LOCAL_SDK_VERSION := 14 LOCAL_NDK_STL_VARIANT := stlport_static +LOCAL_LDFLAGS += -ldl include $(BUILD_SHARED_LIBRARY)