android: Use LOCAL_LDLIBS to link libdl

Newer NDKs fail otherwise as there is no actual module anymore.
This commit is contained in:
Tobias Brunner 2017-05-04 14:00:50 +02:00
parent 74d44e15dc
commit ddd4d8b427
2 changed files with 2 additions and 2 deletions

View File

@ -133,6 +133,6 @@ LOCAL_ARM_MODE := arm
LOCAL_PRELINK_MODULE := false
LOCAL_SHARED_LIBRARIES += libdl
LOCAL_LDLIBS += -ldl
include $(BUILD_SHARED_LIBRARY)

View File

@ -16,7 +16,7 @@ LOCAL_SRC_FILES := $(filter %.c,$(libtnccs_la_SOURCES))
LOCAL_SRC_FILES += $(call add_plugin, tnc-imc)
ifneq ($(call plugin_enabled, tnc-imc),)
LOCAL_SHARED_LIBRARIES += libdl
LOCAL_LDLIBS += -ldl
endif
LOCAL_SRC_FILES += $(call add_plugin, tnc-tnccs)