OSDN Git Service

aidl: Don't link librt on Mac
authorChristopher Wiley <wiley@google.com>
Wed, 2 Sep 2015 01:36:44 +0000 (18:36 -0700)
committerChristopher Wiley <wiley@google.com>
Wed, 2 Sep 2015 15:59:30 +0000 (08:59 -0700)
This fixes unittest build on Mac.

Change-Id: I5180f647d1b5b41f99c4d0423aaec9d05fee6355

tools/aidl/Android.mk

index 354563a..542f272 100644 (file)
@@ -64,7 +64,8 @@ LOCAL_STATIC_LIBRARIES := \
     libgmock_host \
     libgtest_host \
 
-LOCAL_LDLIBS := -lrt
+LOCAL_LDLIBS_linux := -lrt
+
 include $(BUILD_HOST_NATIVE_TEST)
 
 endif # No TARGET_BUILD_APPS or TARGET_BUILD_PDK