Be C std strict on i386 and amd64 as we can. Be loose on Alpha and ia64.
This commit is contained in:
parent
9ad6ff5596
commit
10f7bcc5a8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user