Fix building libstdc++ with clang

Reviewed by:	theraven
This commit is contained in:
Simon J. Gerraty 2014-05-16 14:40:07 +00:00
parent fae50821ae
commit aee7bee5c3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/bmake/; revision=266221
2 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -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