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 |