summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2014-04-21 15:06:30 -0700
committerTim Murray <timmurray@google.com>2014-04-21 17:45:52 -0700
commitd513b7a16f5bb182fbe3cab05bfe68dddff948ff (patch)
tree5b8799877d46685a8fa0d0f90cc71407689f3ae9
parent2517f4fe31291c98c8120e78de0c7a299408bbf1 (diff)
downloadlibcxx_35a-d513b7a16f5bb182fbe3cab05bfe68dddff948ff.tar.gz
Add Darwin-specific fixes for host libc++.
Change-Id: I31ed8779575df16dfe52dc4f1d75a353e560dba5
-rw-r--r--Android.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index e59da4a9..67a5959a 100644
--- a/Android.mk
+++ b/Android.mk
@@ -73,7 +73,17 @@ LOCAL_MODULE := libc++
LOCAL_CLANG := true
LOCAL_SRC_FILES := $(LIBCXX_SRC_FILES)
LOCAL_CPPFLAGS := $(LIBCXX_CPPFLAGS)
-LOCAL_LDFLAGS := -lrt -pthread
+
+ifeq ($(HOST_OS), darwin)
+LOCAL_LDFLAGS := \
+ -Wl,-unexported_symbols_list,external/libcxx/lib/libc++unexp.exp \
+ -Wl,-reexported_symbols_list,external/libcxx/lib/libc++abi2.exp \
+ -Wl,-force_symbols_not_weak_list,external/libcxx/lib/notweak.exp \
+ -Wl,-force_symbols_weak_list,external/libcxx/lib/weak.exp
+else
+LOCAL_LDFLAGS := -lrt -lpthread
+endif
+
LOCAL_SHARED_LIBRARIES := libcxxabi
include $(BUILD_HOST_SHARED_LIBRARY)
endif