diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2009-10-21 17:07:46 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2009-10-21 17:07:46 +0000 |
commit | 7e253ca5eb1409db0d9ebdaa479aab3eee3bd088 (patch) | |
tree | 5f804bc4ee59ebb17ece964550a0adf676fbf29b /share | |
parent | e4fb54a8c126da268c8e39d300346a44b5a35777 (diff) | |
download | FreeBSD-src-7e253ca5eb1409db0d9ebdaa479aab3eee3bd088.zip FreeBSD-src-7e253ca5eb1409db0d9ebdaa479aab3eee3bd088.tar.gz |
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
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.sys.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 34e04f8..f0a40c9 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -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" |