diff options
author | obrien <obrien@FreeBSD.org> | 2003-06-07 08:05:35 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-06-07 08:05:35 +0000 |
commit | 9b92f918c2cbfdfed033104c02bb235868ad82d5 (patch) | |
tree | 410dedb47c93d60ff4825119ce07143c7371109d | |
parent | 9af6eaa8ec9459dced47ea84ff6ded7516777822 (diff) | |
download | FreeBSD-src-9b92f918c2cbfdfed033104c02bb235868ad82d5.zip FreeBSD-src-9b92f918c2cbfdfed033104c02bb235868ad82d5.tar.gz |
Be C std strict on i386 and amd64 as we can. Be loose on Alpha and ia64.
-rw-r--r-- | share/mk/bsd.sys.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 4f6e085..e8affb9 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -8,8 +8,14 @@ # for GCC: http://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_3.html#IDX143 +.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" +CSTD ?= c99 +.elif ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "powerpc" # Can't use "c99" below due to lack of alloca.S for non-i386 platforms. CSTD ?= gnu99 +.else +CSTD ?= +.endif .if ${CSTD} != "" . if ${CSTD} == "k&r" CFLAGS += -traditional |