Followup to r278223, by only using -stdlib=libc++ when the compiler is

clang; not even recent versions of gcc support the -stdlib flag.

Noticed by:	ngie
This commit is contained in:
Dimitry Andric 2015-02-04 21:48:50 +00:00
parent 35a08a4403
commit 5ecbbe6415
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278225

View File

@ -34,7 +34,8 @@ 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 -stdlib=libc++ -fno-exceptions -fno-rtti
CXXFLAGS+= -std=c++11 -fno-exceptions -fno-rtti
CXXFLAGS.clang+= -stdlib=libc++
.PATH: ${LLVM_SRCS}/${SRCDIR}