Module Name:    src
Committed By:   bad
Date:           Thu Jul 11 13:00:38 UTC 2024

Modified Files:
        src/external/gpl3/gcc/usr.bin/host-libcpp: Makefile

Log Message:
external/gpl3/gcc/usr.bin/host-libcpp/Makefile: force std=c++11

GCC >= 11 now requires C++11 to build.  In particular libcpp requires C++11.
c.f tools/gcc/Makefile r1.113.

Noticed by compiling with clang as host compiler on macOS >= 12.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile
diff -u src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile:1.6 src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile:1.7
--- src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile:1.6	Fri May 19 10:42:34 2023
+++ src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile	Thu Jul 11 13:00:37 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.6 2023/05/19 10:42:34 lukem Exp $
+#	$NetBSD: Makefile,v 1.7 2024/07/11 13:00:37 bad Exp $
 
 BUILD_ENV= \
 		AR=${HOST_AR:Q} \
@@ -19,6 +19,9 @@ BUILD_ENV= \
 		RANLIB=${HOST_RANLIB:Q} \
 		YACC=${YACC:Q}
 
+# libcpp needs a C++11 compiler
+HOST_CXXFLAGS+= -std=c++11
+
 GMAKE_J_ARGS?=	${MAKEFLAGS:[*]:M*-j*:C/(^|.* )(-j ?[0-9][0-9]*).*/\2/W}
 BUILD_COMMAND=	/usr/bin/env -i ${BUILD_ENV} ${TOOL_GMAKE} ${GMAKE_J_ARGS} -e
 

Reply via email to