diff options
author | Tim Murray <timmurray@google.com> | 2014-04-21 15:06:30 -0700 |
---|---|---|
committer | Tim Murray <timmurray@google.com> | 2014-04-21 17:45:52 -0700 |
commit | d513b7a16f5bb182fbe3cab05bfe68dddff948ff (patch) | |
tree | 5b8799877d46685a8fa0d0f90cc71407689f3ae9 | |
parent | 2517f4fe31291c98c8120e78de0c7a299408bbf1 (diff) | |
download | external_libcxx-d513b7a16f5bb182fbe3cab05bfe68dddff948ff.tar.gz external_libcxx-d513b7a16f5bb182fbe3cab05bfe68dddff948ff.tar.bz2 external_libcxx-d513b7a16f5bb182fbe3cab05bfe68dddff948ff.zip |
Add Darwin-specific fixes for host libc++.
Change-Id: I31ed8779575df16dfe52dc4f1d75a353e560dba5
-rw-r--r-- | Android.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk index e59da4a92..67a5959a2 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 |