Allow overriding the language standard to something newer.
This commit is contained in:
parent
07c75f64fb
commit
2b27d363b9
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.sys.mk,v 1.315 2023/11/06 22:35:48 christos Exp $
|
||||
# $NetBSD: bsd.sys.mk,v 1.316 2024/02/13 16:15:59 christos Exp $
|
||||
#
|
||||
# Build definitions used for NetBSD source tree builds.
|
||||
|
||||
|
@ -57,7 +57,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 :}
|
||||
|
|
Loading…
Reference in New Issue