summaryrefslogtreecommitdiffstats
path: root/libnativeloader
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-05-25 13:19:49 -0700
committerDan Willemsen <dwillemsen@google.com>2016-06-01 13:41:23 -0700
commitee2da03e2666dcb01721b55aa4767e371120f4fb (patch)
treeb628830902bfb84f00c39cb391971e608a640252 /libnativeloader
parent58ea31cc9013b8aab168cb828571ffc44721d9ef (diff)
downloadsystem_core-ee2da03e2666dcb01721b55aa4767e371120f4fb.tar.gz
system_core-ee2da03e2666dcb01721b55aa4767e371120f4fb.tar.bz2
system_core-ee2da03e2666dcb01721b55aa4767e371120f4fb.zip
Remove invalid uses of -l and -I
LOCAL_LDLIBS should only be used with -l flags for NDK and some host libraries. Other uses should use LOCAL_SHARED_LIBRARIES. LOCAL_LDFLAGS should not contain -l entries, they should be in LOCAL_LDLIBS instead. LOCAL_CFLAGS should not contain -I entries, those should use LOCAL_C_INCLUDES instead. Change-Id: Ic901aa14651572ac682166becd4f0cd86baecc34
Diffstat (limited to 'libnativeloader')
-rw-r--r--libnativeloader/Android.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/libnativeloader/Android.mk b/libnativeloader/Android.mk
index 632c6c8dc..c81c67111 100644
--- a/libnativeloader/Android.mk
+++ b/libnativeloader/Android.mk
@@ -12,12 +12,11 @@ include $(CLEAR_VARS)
LOCAL_MODULE:= libnativeloader
LOCAL_SRC_FILES:= $(native_loader_common_src_files)
-LOCAL_SHARED_LIBRARIES := libnativehelper liblog libcutils
+LOCAL_SHARED_LIBRARIES := libnativehelper liblog libcutils libdl
LOCAL_STATIC_LIBRARIES := libbase
LOCAL_CLANG := true
LOCAL_CFLAGS := $(native_loader_common_cflags)
LOCAL_CPPFLAGS := -std=gnu++14 -fvisibility=hidden
-LOCAL_LDFLAGS := -ldl
LOCAL_MULTILIB := both
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include