summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/audioflinger/Android.mk6
-rw-r--r--libs/surfaceflinger/Android.mk2
2 files changed, 7 insertions, 1 deletions
diff --git a/libs/audioflinger/Android.mk b/libs/audioflinger/Android.mk
index ea7d6c2..bb224be 100644
--- a/libs/audioflinger/Android.mk
+++ b/libs/audioflinger/Android.mk
@@ -54,4 +54,10 @@ ifeq ($(BOARD_HAVE_BLUETOOTH),true)
LOCAL_C_INCLUDES += $(call include-path-for, bluez)
endif
+ifeq ($(TARGET_SIMULATOR),true)
+ ifeq ($(HOST_OS),linux)
+ LOCAL_LDLIBS += -lrt -lpthread
+ endif
+endif
+
include $(BUILD_SHARED_LIBRARY)
diff --git a/libs/surfaceflinger/Android.mk b/libs/surfaceflinger/Android.mk
index 93cb5ae..88e76dc 100644
--- a/libs/surfaceflinger/Android.mk
+++ b/libs/surfaceflinger/Android.mk
@@ -28,7 +28,7 @@ endif
# need "-lrt" on Linux simulator to pick up clock_gettime
ifeq ($(TARGET_SIMULATOR),true)
ifeq ($(HOST_OS),linux)
- LOCAL_LDLIBS += -lrt
+ LOCAL_LDLIBS += -lrt -lpthread
endif
endif