Module Name: src
Committed By: martin
Date: Sun Feb 25 16:51:13 UTC 2024
Modified Files:
src/share/mk [netbsd-10]: bsd.sys.mk
Log Message:
Additionally pull up the following to fix the build for ticket #610:
share/mk/bsd.sys.mk 1.316
Allow overriding the language standard to something newer.
To generate a diff of this commit:
cvs rdiff -u -r1.309 -r1.309.2.1 src/share/mk/bsd.sys.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/mk/bsd.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.309 src/share/mk/bsd.sys.mk:1.309.2.1
--- src/share/mk/bsd.sys.mk:1.309 Tue Dec 14 16:22:07 2021
+++ src/share/mk/bsd.sys.mk Sun Feb 25 16:51:13 2024
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.309 2021/12/14 16:22:07 christos Exp $
+# $NetBSD: bsd.sys.mk,v 1.309.2.1 2024/02/25 16:51:13 martin Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -53,7 +53,7 @@ CXXFLAGS+= ${REPROFLAGS}
# NetBSD sources use C99 style, with some GCC extensions.
# Coverity does not like -std=gnu99
-.if !defined(COVERITY_TOP_CONFIG)
+.if !defined(COVERITY_TOP_CONFIG) && empty(CFLAGS:M*-std=*)
CFLAGS+= ${${ACTIVE_CC} == "clang":? -std=gnu99 :}
CFLAGS+= ${${ACTIVE_CC} == "gcc":? -std=gnu99 :}
CFLAGS+= ${${ACTIVE_CC} == "pcc":? -std=gnu99 :}