diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2009-03-14 17:55:16 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2009-03-14 17:55:16 +0000 |
commit | 4cd01fc223701ae9a3fc4907d8c8e835ca6193d6 (patch) | |
tree | 2e832ae7edeb004a0ac2179546f03d09f8ad19b9 /share | |
parent | 9dac23d7ae211df76cd0c75b8afc7a756730f4d4 (diff) | |
download | FreeBSD-src-4cd01fc223701ae9a3fc4907d8c8e835ca6193d6.zip FreeBSD-src-4cd01fc223701ae9a3fc4907d8c8e835ca6193d6.tar.gz |
Switch over to gnu99 compilation on default for userland.
Tested by: make universe
Tested by: ports exp build (done by pav)
Reviewed by: ru
Reviewed by: silence on arch
Approved by: ed (mentor)
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.sys.mk | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 197c1d6..34e04f8 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -8,22 +8,23 @@ # for GCC: http://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_3.html#IDX143 +# the default is gnu99 for now +CSTD ?= gnu99 + .if !defined(NO_WARNS) && ${CC} != "icc" -. if defined(CSTD) -. if ${CSTD} == "k&r" +. if ${CSTD} == "k&r" CFLAGS += -traditional -. elif ${CSTD} == "c89" || ${CSTD} == "c90" +. elif ${CSTD} == "c89" || ${CSTD} == "c90" CFLAGS += -std=iso9899:1990 -. elif ${CSTD} == "c94" || ${CSTD} == "c95" +. elif ${CSTD} == "c94" || ${CSTD} == "c95" CFLAGS += -std=iso9899:199409 -. elif ${CSTD} == "c99" +. elif ${CSTD} == "c99" CFLAGS += -std=iso9899:1999 -. else +. else CFLAGS += -std=${CSTD} -. endif +. endif # -pedantic is problematic because it also imposes namespace restrictions #CFLAGS += -pedantic -. endif . if defined(WARNS) . if ${WARNS} >= 1 CWARNFLAGS += -Wsystem-headers |