aboutsummaryrefslogtreecommitdiff
path: root/gnu/lib/libsupc++
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2012-10-23 18:57:20 +0000
committerDimitry Andric <dim@FreeBSD.org>2012-10-23 18:57:20 +0000
commitf289fa663ba261938294e4d53a5af8a4a9ff6c39 (patch)
tree6a8c47b0cdc433d77ff240b16be56e421ec477f3 /gnu/lib/libsupc++
parent387c85f1ca942337a4d252c994e225ce61fccf88 (diff)
Notes
Diffstat (limited to 'gnu/lib/libsupc++')
-rw-r--r--gnu/lib/libsupc++/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/lib/libsupc++/Makefile b/gnu/lib/libsupc++/Makefile
index 76fa1018cab1c..90686158bddb3 100644
--- a/gnu/lib/libsupc++/Makefile
+++ b/gnu/lib/libsupc++/Makefile
@@ -24,7 +24,6 @@ CFLAGS+= -I${GCCLIB}/include -I${SRCDIR} -I${GCCDIR}
CFLAGS+= -I${.CURDIR}/../libstdc++ -I.
CFLAGS+= -frandom-seed=RepeatabilityConsideredGood
CXXFLAGS+= -fno-implicit-templates -ffunction-sections -fdata-sections
-CXXFLAGS:= ${CXXFLAGS:N-stdlib=libc++:N-std=c++[01][13x]:N-std=gnu++[01][13x]}
PO_CXXFLAGS= ${CXXFLAGS:N-ffunction-sections}
HDRS= exception new typeinfo cxxabi.h exception_defines.h
@@ -43,3 +42,6 @@ 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]}