diff options
| author | Stephen J. Kiernan <stevek@FreeBSD.org> | 2023-09-29 15:04:45 +0000 |
|---|---|---|
| committer | Stephen J. Kiernan <stevek@FreeBSD.org> | 2023-09-29 23:19:58 +0000 |
| commit | e47381c9fc72c16e063da71fb32191e402948a50 (patch) | |
| tree | 53f3d4328a7f9f72fc99a2e5fee5f7a4ec745693 | |
| parent | 480f62ccd8d998e4db9dc13c354a60f8f5e32a33 (diff) | |
Allow for CSTD to be set kernel module Makefiles before inclusion
Use ?= when setting the default value for CSTD so it can be set by
Makefiles before inclusion and not be overridden by the .mk file.
Reviewed by: imp, sjg
Obtained from: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D42019
| -rw-r--r-- | sys/conf/kern.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index e00e025ab91b..b508bc81b5f0 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -271,7 +271,7 @@ PHONY_NOTMAIN = afterdepend afterinstall all beforedepend beforeinstall \ .PHONY: ${PHONY_NOTMAIN} .NOTMAIN: ${PHONY_NOTMAIN} -CSTD= gnu99 +CSTD?= gnu99 .if ${CSTD} == "k&r" CFLAGS+= -traditional |
