svn commit: r351960 - stable/12/share/mk
Alan Somers
asomers at FreeBSD.org
Fri Sep 6 19:36:42 UTC 2019
Author: asomers
Date: Fri Sep 6 19:36:41 2019
New Revision: 351960
URL: https://svnweb.freebsd.org/changeset/base/351960
Log:
MFC r350453:
Add a CXXWARNFLAGS variable
Some warning flags are valid for C++ but not C. GCC 8 complains if you pass
such flags when building a C file. Using a separate variable for these
flags allows building both C and C++ files in the same directory (such as
the fusefs tests) under GCC.
Reviewed by: cem, emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21116
Modified:
stable/12/share/mk/bsd.sys.mk
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/share/mk/bsd.sys.mk
==============================================================================
--- stable/12/share/mk/bsd.sys.mk Fri Sep 6 19:30:23 2019 (r351959)
+++ stable/12/share/mk/bsd.sys.mk Fri Sep 6 19:36:41 2019 (r351960)
@@ -234,6 +234,8 @@ DEBUG_FILES_CFLAGS?= -g
.if ${MK_WARNS} != "no"
CFLAGS+= ${CWARNFLAGS:M*} ${CWARNFLAGS.${COMPILER_TYPE}}
CFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
+CXXFLAGS+= ${CXXWARNFLAGS:M*} ${CXXWARNFLAGS.${COMPILER_TYPE}}
+CXXFLAGS+= ${CXXWARNFLAGS.${.IMPSRC:T}}
.endif
CFLAGS+= ${CFLAGS.${COMPILER_TYPE}}
More information about the svn-src-stable
mailing list