diff options
| -rw-r--r-- | liblog/Android.mk | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/liblog/Android.mk b/liblog/Android.mk index 54e0b92..a23de2d 100644 --- a/liblog/Android.mk +++ b/liblog/Android.mk @@ -61,14 +61,19 @@ 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) include $(CLEAR_VARS) LOCAL_MODULE := liblog LOCAL_WHOLE_STATIC_LIBRARIES := liblog +ifeq ($(strip $(HOST_OS)),linux) LOCAL_LDLIBS := -lrt +endif include $(BUILD_HOST_SHARED_LIBRARY) @@ -77,7 +82,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) |
