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>
This commit is contained in:
Iliyan Malchev
2011-10-19 22:35:56 -07:00
parent 63aa6622d0
commit 64ef6b47e0
5 changed files with 8 additions and 4 deletions

View File

@@ -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)

View File

@@ -44,7 +44,7 @@ LOCAL_STATIC_LIBRARIES := \
libpng
ifeq ($(HOST_OS),linux)
LOCAL_LDLIBS += -lrt -lpthread
LOCAL_LDLIBS += -lrt -ldl -lpthread
endif
# Statically link libz for MinGW (Win SDK under Linux),

View File

@@ -34,7 +34,7 @@ LOCAL_STATIC_LIBRARIES := \
libcutils
ifeq ($(HOST_OS),linux)
LOCAL_LDLIBS += -lrt -lpthread
LOCAL_LDLIBS += -lrt -ldl -lpthread
endif

View File

@@ -22,7 +22,7 @@ LOCAL_STATIC_LIBRARIES := \
libcutils
ifeq ($(HOST_OS),linux)
LOCAL_LDLIBS += -lpthread
LOCAL_LDLIBS += -ldl -lpthread
endif
LOCAL_MODULE := obbtool

View File

@@ -23,7 +23,7 @@ LOCAL_STATIC_LIBRARIES := \
libcutils
ifeq ($(HOST_OS),linux)
LOCAL_LDLIBS += -lpthread
LOCAL_LDLIBS += -ldl -lpthread
endif
LOCAL_MODULE := validatekeymaps