summaryrefslogtreecommitdiffstats
path: root/gnu/lib
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2014-05-16 14:40:07 +0000
committersjg <sjg@FreeBSD.org>2014-05-16 14:40:07 +0000
commitc40d20ab2638054582723925b4e233029f19c177 (patch)
tree24370abdb19f2acfb08b5d4b65ffe57fd489b300 /gnu/lib
parent5860f0d10657dc9748acf6637885ee7fbf6fb212 (diff)
downloadFreeBSD-src-c40d20ab2638054582723925b4e233029f19c177.zip
FreeBSD-src-c40d20ab2638054582723925b4e233029f19c177.tar.gz
Fix building libstdc++ with clang
Reviewed by: theraven
Diffstat (limited to 'gnu/lib')
-rw-r--r--gnu/lib/libstdc++/Makefile5
-rw-r--r--gnu/lib/libsupc++/Makefile4
2 files changed, 3 insertions, 6 deletions
diff --git a/gnu/lib/libstdc++/Makefile b/gnu/lib/libstdc++/Makefile
index d19f9f3..dffb563 100644
--- a/gnu/lib/libstdc++/Makefile
+++ b/gnu/lib/libstdc++/Makefile
@@ -634,7 +634,6 @@ CLEANFILES+= ${VERSION_MAP}
.include <bsd.lib.mk>
-# Filter out libc++-specific flags, and -std= flags above c++98 or gnu++98.
-CXXFLAGS:= ${CXXFLAGS:N-stdlib=libc++:N-std=c++[01][13x]:N-std=gnu++[01][13x]}
-
CXXFLAGS.clang+= -stdlib=libstdc++
+CXXFLAGS+= -std=gnu++98
+
diff --git a/gnu/lib/libsupc++/Makefile b/gnu/lib/libsupc++/Makefile
index 5cc5f04..a172a6e 100644
--- a/gnu/lib/libsupc++/Makefile
+++ b/gnu/lib/libsupc++/Makefile
@@ -54,7 +54,5 @@ VERSION_MAP= ${.CURDIR}/Version.map
.include <bsd.lib.mk>
-# Filter out libc++-specific flags, and -std= flags above c++98 or gnu++98.
-CXXFLAGS:= ${CXXFLAGS:N-stdlib=libc++:N-std=c++[01][13x]:N-std=gnu++[01][13x]}
-
CXXFLAGS.clang+= -stdlib=libstdc++
+CXXFLAGS+= -std=gnu++98
OpenPOWER on IntegriCloud