summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-05-21 18:13:45 -0700
committerBrian Carlstrom <bdc@google.com>2014-06-09 15:32:33 -0700
commit3fd578fd1052893e8071513281141aed0230e7ac (patch)
treec7cd8e94c36e2a5c3c7258889e5e9cfff88d9d76
parent9f59e7d18c02d99d540c80fdaeb37ac83bdc047f (diff)
downloadexternal_libcxx-3fd578fd1052893e8071513281141aed0230e7ac.tar.gz
external_libcxx-3fd578fd1052893e8071513281141aed0230e7ac.tar.bz2
external_libcxx-3fd578fd1052893e8071513281141aed0230e7ac.zip
Need to exclude libstdc++ for host builds
(cherry picked from commit 65759667bd45650262d04c71e2987cb33d835eea) Change-Id: I4e8bc93fb72cc701ea46738813e141353beafa52
-rw-r--r--libcxx.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx.mk b/libcxx.mk
index 1cd287385..5325fd114 100644
--- a/libcxx.mk
+++ b/libcxx.mk
@@ -21,4 +21,7 @@ LOCAL_C_INCLUDES := \
external/libcxxrt/include \
$(LOCAL_C_INCLUDES) \
+LOCAL_CPPFLAGS += -nostdinc++
+LOCAL_LDFLAGS += -nodefaultlibs
+LOCAL_LDLIBS += -lm -lc
LOCAL_SHARED_LIBRARIES += libc++