Skip to content

Commit 64ef6b4

Browse files
author
Iliyan Malchev
committed
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>
1 parent 63aa662 commit 64ef6b4

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

libs/utils/Android.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ LOCAL_CFLAGS += -DMB_CUR_MAX=1
7171
endif
7272
endif
7373

74+
ifeq ($(TARGET_OS),linux)
75+
LOCAL_LDLIBS += -lrt -ldl
76+
endif
77+
7478
include $(BUILD_HOST_STATIC_LIBRARY)
7579

7680

tools/aapt/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ LOCAL_STATIC_LIBRARIES := \
4444
libpng
4545

4646
ifeq ($(HOST_OS),linux)
47-
LOCAL_LDLIBS += -lrt -lpthread
47+
LOCAL_LDLIBS += -lrt -ldl -lpthread
4848
endif
4949

5050
# Statically link libz for MinGW (Win SDK under Linux),

tools/localize/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ LOCAL_STATIC_LIBRARIES := \
3434
libcutils
3535

3636
ifeq ($(HOST_OS),linux)
37-
LOCAL_LDLIBS += -lrt -lpthread
37+
LOCAL_LDLIBS += -lrt -ldl -lpthread
3838
endif
3939

4040

tools/obbtool/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ LOCAL_STATIC_LIBRARIES := \
2222
libcutils
2323

2424
ifeq ($(HOST_OS),linux)
25-
LOCAL_LDLIBS += -lpthread
25+
LOCAL_LDLIBS += -ldl -lpthread
2626
endif
2727

2828
LOCAL_MODULE := obbtool

tools/validatekeymaps/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ LOCAL_STATIC_LIBRARIES := \
2323
libcutils
2424

2525
ifeq ($(HOST_OS),linux)
26-
LOCAL_LDLIBS += -lpthread
26+
LOCAL_LDLIBS += -ldl -lpthread
2727
endif
2828

2929
LOCAL_MODULE := validatekeymaps

0 commit comments

Comments
 (0)