From 296dc446376e19d2ce995ae7bc886560523eca2d Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Fri, 14 Mar 2014 14:37:39 -0700 Subject: [PATCH] Fix the build Change-Id: I924f4796fbb70a0f45cc23a852e26e634c5b0e0e --- liblog/Android.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/liblog/Android.mk b/liblog/Android.mk index 54e0b92a0..a4c52e71e 100644 --- a/liblog/Android.mk +++ b/liblog/Android.mk @@ -61,7 +61,10 @@ endif # ======================================================== LOCAL_MODULE := liblog LOCAL_SRC_FILES := $(liblog_host_sources) -LOCAL_LDLIBS := -lpthread -lrt +LOCAL_LDLIBS := -lpthread +ifeq ($(strip $(HOST_OS)),linux) +LOCAL_LDLIBS += -lrt +endif LOCAL_CFLAGS := -DFAKE_LOG_DEVICE=1 include $(BUILD_HOST_STATIC_LIBRARY) @@ -77,7 +80,10 @@ include $(BUILD_HOST_SHARED_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := lib64log LOCAL_SRC_FILES := $(liblog_host_sources) -LOCAL_LDLIBS := -lpthread -lrt +LOCAL_LDLIBS := -lpthread +ifeq ($(strip $(HOST_OS)),linux) +LOCAL_LDLIBS += -lrt +endif LOCAL_CFLAGS := -DFAKE_LOG_DEVICE=1 -m64 include $(BUILD_HOST_STATIC_LIBRARY)