diff options
Diffstat (limited to 'gnu/lib/libstdc++/Makefile')
-rw-r--r-- | gnu/lib/libstdc++/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/lib/libstdc++/Makefile b/gnu/lib/libstdc++/Makefile index dffb563..fa1d67e 100644 --- a/gnu/lib/libstdc++/Makefile +++ b/gnu/lib/libstdc++/Makefile @@ -632,8 +632,9 @@ ${VERSION_MAP}: ${SRCDIR}/config/abi/pre/gnu.ver CLEANFILES+= ${VERSION_MAP} -.include <bsd.lib.mk> - CXXFLAGS.clang+= -stdlib=libstdc++ -CXXFLAGS+= -std=gnu++98 +.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]} |