Set CSTD in all cases except when CC=icc and NO_WARNS is set. This

way we can set desired C standard even for cross tools etc.

Tested by:	make universe
Approved by:	ed (maintainer)
OK by:		das
This commit is contained in:
Roman Divacky 2009-10-21 17:07:46 +00:00
parent c0d232d988
commit 9448b439ec

View File

@ -11,7 +11,7 @@
# the default is gnu99 for now
CSTD ?= gnu99
.if !defined(NO_WARNS) && ${CC} != "icc"
.if !defined(NO_WARNS) || ${CC} != "icc"
. if ${CSTD} == "k&r"
CFLAGS += -traditional
. elif ${CSTD} == "c89" || ${CSTD} == "c90"