summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIliyan Malchev <malchev@google.com>2011-10-19 22:35:56 -0700
committerAlex Ray <aray@google.com>2013-07-30 13:56:58 -0700
commit26ad34522e85b4427ec0ae662dd43eb78a2c5f95 (patch)
tree913a390b42ca4cff87f061103a70da098ab3bd47
parent5cd324794ccadfefcdcde849fb6d682622773944 (diff)
downloadcore-26ad34522e85b4427ec0ae662dd43eb78a2c5f95.tar.gz
core-26ad34522e85b4427ec0ae662dd43eb78a2c5f95.tar.bz2
core-26ad34522e85b4427ec0ae662dd43eb78a2c5f95.zip
add -ldl to host executables
This fixes the build on Linux when RefBase is compiled with reference tracking enabled. Change-Id: I3e931e0b463ce836f6fdb30c37068d77144631a3 Signed-off-by: Iliyan Malchev <malchev@google.com>
-rw-r--r--libs/utils/Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/utils/Android.mk b/libs/utils/Android.mk
index 638f72f0b..831d9e378 100644
--- a/libs/utils/Android.mk
+++ b/libs/utils/Android.mk
@@ -71,6 +71,10 @@ LOCAL_CFLAGS += -DMB_CUR_MAX=1
endif
endif
+ifeq ($(TARGET_OS),linux)
+LOCAL_LDLIBS += -lrt -ldl
+endif
+
include $(BUILD_HOST_STATIC_LIBRARY)