Gentoo Archives: gentoo-commits

From: Yuta SATOH <nigoro.gentoo@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-bsd:master commit in: profiles/arch/amd64-fbsd/clang/
Date: Wed, 22 Jan 2014 12:08:53
Message-Id: 1390392471.3087e63c1abb44dd5f9bbc03b61df3d014c191cd.yuta_satoh@gentoo
1 commit: 3087e63c1abb44dd5f9bbc03b61df3d014c191cd
2 Author: Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
3 AuthorDate: Wed Jan 22 12:07:51 2014 +0000
4 Commit: Yuta SATOH <nigoro.gentoo <AT> 0x100 <DOT> com>
5 CommitDate: Wed Jan 22 12:07:51 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=commit;h=3087e63c
7
8 clang/profile.bashrc: fix bug 498910.
9
10 ---
11 profiles/arch/amd64-fbsd/clang/profile.bashrc | 6 +++++-
12 1 file changed, 5 insertions(+), 1 deletion(-)
13
14 diff --git a/profiles/arch/amd64-fbsd/clang/profile.bashrc b/profiles/arch/amd64-fbsd/clang/profile.bashrc
15 index 9ae60c1..fe8416a 100644
16 --- a/profiles/arch/amd64-fbsd/clang/profile.bashrc
17 +++ b/profiles/arch/amd64-fbsd/clang/profile.bashrc
18 @@ -5,4 +5,8 @@
19 # Check if clang/clang++ exist before setting them so that we can more easily
20 # switch to this profile and build stages.
21 type -P clang > /dev/null && export CC=clang
22 -type -P clang++ > /dev/null && [ -f /usr/lib/libc++.so ] && export CXX="clang++ -stdlib=libc++"
23 +if type -P clang++ > /dev/null && [ -f /usr/lib/libc++.so ]; then
24 + export CXX="clang++"
25 + # add -stdlib=libc++ to CXXFLAGS, bug 498910.
26 + [[ ${CXXFLAGS} != *-stdlib=libc++* ]] && export CXXFLAGS="-stdlib=libc++ ${CXXFLAGS}"
27 +fi