summaryrefslogtreecommitdiffstats
path: root/NativeCode.mk
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-06-10 23:29:14 -0700
committerIan Rogers <irogers@google.com>2014-06-10 23:29:14 -0700
commitefae3837b3eb79dea3400735fdcdd5a39020e0b0 (patch)
tree3e5dd07a548a616003eb6fd80fe6b39dbc3b053d /NativeCode.mk
parent995dc1746d6723734892b348e8faf627d830695e (diff)
downloadlibcore-efae3837b3eb79dea3400735fdcdd5a39020e0b0.zip
libcore-efae3837b3eb79dea3400735fdcdd5a39020e0b0.tar.gz
libcore-efae3837b3eb79dea3400735fdcdd5a39020e0b0.tar.bz2
Fix Mac build.
Change-Id: I32fdb9dabbc87d49e0be82ea39c2eea6f452fd6f
Diffstat (limited to 'NativeCode.mk')
-rw-r--r--NativeCode.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/NativeCode.mk b/NativeCode.mk
index d811439..98e87b0 100644
--- a/NativeCode.mk
+++ b/NativeCode.mk
@@ -118,7 +118,10 @@ LOCAL_SRC_FILES += $(core_src_files)
LOCAL_CFLAGS += $(core_cflags)
LOCAL_C_INCLUDES += $(core_c_includes)
LOCAL_CPPFLAGS += $(core_cppflags)
-LOCAL_LDLIBS += -ldl -lpthread -lrt
+LOCAL_LDLIBS += -ldl -lpthread
+ifeq ($(HOST_OS),linux)
+LOCAL_LDLIBS += -lrt
+endif
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := libjavacore
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/NativeCode.mk