diff options
author | sjg <sjg@FreeBSD.org> | 2014-05-16 14:40:07 +0000 |
---|---|---|
committer | sjg <sjg@FreeBSD.org> | 2014-05-16 14:40:07 +0000 |
commit | c40d20ab2638054582723925b4e233029f19c177 (patch) | |
tree | 24370abdb19f2acfb08b5d4b65ffe57fd489b300 /gnu/lib | |
parent | 5860f0d10657dc9748acf6637885ee7fbf6fb212 (diff) | |
download | FreeBSD-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++/Makefile | 5 | ||||
-rw-r--r-- | gnu/lib/libsupc++/Makefile | 4 |
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 |