summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--liblog/Android.mk10
1 files 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
61# ======================================================== 61# ========================================================
62LOCAL_MODULE := liblog 62LOCAL_MODULE := liblog
63LOCAL_SRC_FILES := $(liblog_host_sources) 63LOCAL_SRC_FILES := $(liblog_host_sources)
64LOCAL_LDLIBS := -lpthread -lrt 64LOCAL_LDLIBS := -lpthread
65ifeq ($(strip $(HOST_OS)),linux)
66LOCAL_LDLIBS += -lrt
67endif
65LOCAL_CFLAGS := -DFAKE_LOG_DEVICE=1 68LOCAL_CFLAGS := -DFAKE_LOG_DEVICE=1
66include $(BUILD_HOST_STATIC_LIBRARY) 69include $(BUILD_HOST_STATIC_LIBRARY)
67 70
@@ -77,7 +80,10 @@ include $(BUILD_HOST_SHARED_LIBRARY)
77include $(CLEAR_VARS) 80include $(CLEAR_VARS)
78LOCAL_MODULE := lib64log 81LOCAL_MODULE := lib64log
79LOCAL_SRC_FILES := $(liblog_host_sources) 82LOCAL_SRC_FILES := $(liblog_host_sources)
80LOCAL_LDLIBS := -lpthread -lrt 83LOCAL_LDLIBS := -lpthread
84ifeq ($(strip $(HOST_OS)),linux)
85LOCAL_LDLIBS += -lrt
86endif
81LOCAL_CFLAGS := -DFAKE_LOG_DEVICE=1 -m64 87LOCAL_CFLAGS := -DFAKE_LOG_DEVICE=1 -m64
82include $(BUILD_HOST_STATIC_LIBRARY) 88include $(BUILD_HOST_STATIC_LIBRARY)
83 89