Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/lib/libstdc++-v3 - fix build for c98/c11 v...
details: https://anonhg.NetBSD.org/src/rev/335cbea10b6d
branches: trunk
changeset: 344153:335cbea10b6d
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Mar 15 21:42:59 2016 +0000
description:
- fix build for c98/c11 versions of codecvt.cc
- the c99 subdir localename.cc and locale_init.cc need -std=gnu++11
diffstat:
external/gpl3/gcc/lib/libstdc++-v3/Makefile | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 6ff81bb703e4 -r 335cbea10b6d external/gpl3/gcc/lib/libstdc++-v3/Makefile
--- a/external/gpl3/gcc/lib/libstdc++-v3/Makefile Tue Mar 15 21:41:36 2016 +0000
+++ b/external/gpl3/gcc/lib/libstdc++-v3/Makefile Tue Mar 15 21:42:59 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2016/03/15 06:13:47 mrg Exp $
+# $NetBSD: Makefile,v 1.22 2016/03/15 21:42:59 mrg Exp $
REQUIRETOOLS= yes
NOLINT= # defined
@@ -91,6 +91,13 @@
${GLIBCXX_SRCDIR}/${G_CMONEY_CC} monetary_members_cow.cc \
${GLIBCXX_SRCDIR}/${G_CNUMERIC_CC} numeric_members_cow.cc
+# XXX both c++98 and c++11 have codecvt.cc files.
+BUILDSYMLINKS+= \
+ ${GLIBCXX_SRCDIR}/src/c++98/codecvt.cc c98-codecvt.cc
+BUILDSYMLINKS+= \
+ ${GLIBCXX_SRCDIR}/src/c++11/codecvt.cc c11-codecvt.cc
+SRCS+= c98-codecvt.cc c11-codecvt.cc
+
.if ${HAVE_LIBGCC_EH} == "no"
G_CONFIGLINKS:= ${G_CONFIGLINKS:S,libgcc/config/arm/unwind-arm.h,libgcc/unwind-generic.h,}
.endif
@@ -108,7 +115,7 @@
.for _s in ${SRCS:M*.cc}
COPTS.${_s}+= -std=gnu++11
.endfor
-.for _s in ${G_CPP98_SOURCES:M*.cc}
+.for _s in ${G_CPP98_SOURCES:Nlocalename.cc:Nlocale_init.cc:M*.cc}
COPTS.${_s}+= -std=gnu++98
.endfor
Home |
Main Index |
Thread Index |
Old Index