diff options
Diffstat (limited to 'share/mk/bsd.sys.mk')
-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 |