summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--liblog/Android.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/liblog/Android.mk b/liblog/Android.mk
index a4c52e7..a23de2d 100644
--- a/liblog/Android.mk
+++ b/liblog/Android.mk
@@ -71,7 +71,9 @@ 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)