summaryrefslogtreecommitdiffstats
path: root/lib/clang/clang.build.mk
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-02-04 21:00:29 +0000
committerdim <dim@FreeBSD.org>2015-02-04 21:00:29 +0000
commit7984b94dab1c2e20c98edd0089b674cb68e91084 (patch)
tree2c372d7cfe362582051b201f6bd258130d0b1980 /lib/clang/clang.build.mk
parentdcbaa42a6d12d5451a704dd1ecfe93bb995ea7e2 (diff)
downloadFreeBSD-src-7984b94dab1c2e20c98edd0089b674cb68e91084.zip
FreeBSD-src-7984b94dab1c2e20c98edd0089b674cb68e91084.tar.gz
For now, add -stdlib=libc++ to the flags for building clang, since that
makes it easier to build head on stable/9, where libstdc++ is still the default. We can revisit this when somebody will try to build base with gcc 4.8.1 or higher, and its included libstdc++. Reported by: rpaulo
Diffstat (limited to 'lib/clang/clang.build.mk')
-rw-r--r--lib/clang/clang.build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/clang/clang.build.mk b/lib/clang/clang.build.mk
index 926c81f..f29762b 100644
--- a/lib/clang/clang.build.mk
+++ b/lib/clang/clang.build.mk
@@ -34,7 +34,7 @@ BUILD_TRIPLE?= ${BUILD_ARCH:C/amd64/x86_64/:C/armv6hf/armv6/:C/arm64/aarch64/}-u
CFLAGS+= -DLLVM_DEFAULT_TARGET_TRIPLE=\"${TARGET_TRIPLE}\" \
-DLLVM_HOST_TRIPLE=\"${BUILD_TRIPLE}\" \
-DDEFAULT_SYSROOT=\"${TOOLS_PREFIX}\"
-CXXFLAGS+= -std=c++11 -fno-exceptions -fno-rtti
+CXXFLAGS+= -std=c++11 -stdlib=libc++ -fno-exceptions -fno-rtti
.PATH: ${LLVM_SRCS}/${SRCDIR}
OpenPOWER on IntegriCloud