From b5fe317b91623f63523ff9ffe82ddd8a5b3c6ef3 Mon Sep 17 00:00:00 2001 From: Iliyan Malchev Date: Wed, 19 Oct 2011 22:35:56 -0700 Subject: [PATCH] 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 --- libs/utils/Android.mk | 4 ++++ 1 file changed, 4 insertions(+) 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)