summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuta SATOH <nigoro@gentoo.gr.jp>2014-01-22 21:07:51 +0900
committerYuta SATOH <nigoro@gentoo.gr.jp>2014-01-22 21:07:51 +0900
commit3087e63c1abb44dd5f9bbc03b61df3d014c191cd (patch)
tree4e16ee5ca20a1e4b012401b5630d09333bd72fe2 /profiles
parentsys-freebsd/*-10.0.9999: bump 10.0-RELEASE. (diff)
downloadgentoo-bsd-3087e63c1abb44dd5f9bbc03b61df3d014c191cd.tar.gz
gentoo-bsd-3087e63c1abb44dd5f9bbc03b61df3d014c191cd.tar.bz2
gentoo-bsd-3087e63c1abb44dd5f9bbc03b61df3d014c191cd.zip
clang/profile.bashrc: fix bug 498910.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/arch/amd64-fbsd/clang/profile.bashrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/profiles/arch/amd64-fbsd/clang/profile.bashrc b/profiles/arch/amd64-fbsd/clang/profile.bashrc
index 9ae60c1..fe8416a 100644
--- a/profiles/arch/amd64-fbsd/clang/profile.bashrc
+++ b/profiles/arch/amd64-fbsd/clang/profile.bashrc
@@ -5,4 +5,8 @@
# Check if clang/clang++ exist before setting them so that we can more easily
# switch to this profile and build stages.
type -P clang > /dev/null && export CC=clang
-type -P clang++ > /dev/null && [ -f /usr/lib/libc++.so ] && export CXX="clang++ -stdlib=libc++"
+if type -P clang++ > /dev/null && [ -f /usr/lib/libc++.so ]; then
+ export CXX="clang++"
+ # add -stdlib=libc++ to CXXFLAGS, bug 498910.
+ [[ ${CXXFLAGS} != *-stdlib=libc++* ]] && export CXXFLAGS="-stdlib=libc++ ${CXXFLAGS}"
+fi