summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/Android.executable.mk1
-rw-r--r--build/Android.gtest.mk1
2 files changed, 2 insertions, 0 deletions
diff --git a/build/Android.executable.mk b/build/Android.executable.mk
index ba54e0476b..551b03ccc6 100644
--- a/build/Android.executable.mk
+++ b/build/Android.executable.mk
@@ -84,6 +84,7 @@ define build-art-executable
else
LOCAL_CFLAGS += $(ART_HOST_NON_DEBUG_CFLAGS)
endif
+ LOCAL_LDLIBS += -lpthread
endif
ifeq ($$(art_ndebug_or_debug),ndebug)
diff --git a/build/Android.gtest.mk b/build/Android.gtest.mk
index 62916e3c36..da0b5008a0 100644
--- a/build/Android.gtest.mk
+++ b/build/Android.gtest.mk
@@ -176,6 +176,7 @@ define build-art-test
# GCC host compiled tests fail with this linked, presumably due to destructors that run.
LOCAL_STATIC_LIBRARIES += libgtest_host
endif
+ LOCAL_LDLIBS += -lpthread -ldl
include $(BUILD_HOST_EXECUTABLE)
art_gtest_exe := $(HOST_OUT_EXECUTABLES)/$$(LOCAL_MODULE)
ART_HOST_GTEST_EXECUTABLES += $$(art_gtest_exe)