Fix building libstdc++ with clang
Reviewed by: theraven
This commit is contained in:
parent
fae50821ae
commit
aee7bee5c3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/bmake/; revision=266221
@ -634,7 +634,6 @@ CLEANFILES+= ${VERSION_MAP}
|
|||||||
|
|
||||||
.include <bsd.lib.mk>
|
.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.clang+= -stdlib=libstdc++
|
||||||
|
CXXFLAGS+= -std=gnu++98
|
||||||
|
|
||||||
|
@ -54,7 +54,5 @@ VERSION_MAP= ${.CURDIR}/Version.map
|
|||||||
|
|
||||||
.include <bsd.lib.mk>
|
.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.clang+= -stdlib=libstdc++
|
||||||
|
CXXFLAGS+= -std=gnu++98
|
||||||
|
Loading…
Reference in New Issue
Block a user