diff options
author | Ian Rogers <irogers@google.com> | 2014-06-10 23:29:14 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-06-10 23:29:14 -0700 |
commit | efae3837b3eb79dea3400735fdcdd5a39020e0b0 (patch) | |
tree | 3e5dd07a548a616003eb6fd80fe6b39dbc3b053d /NativeCode.mk | |
parent | 995dc1746d6723734892b348e8faf627d830695e (diff) | |
download | libcore-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.mk | 5 |
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 |