svn commit: r198335 - head/share/mk
Roman Divacky
rdivacky at FreeBSD.org
Wed Oct 21 17:07:46 UTC 2009
Author: rdivacky
Date: Wed Oct 21 17:07:46 2009
New Revision: 198335
URL: http://svn.freebsd.org/changeset/base/198335
Log:
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
Modified:
head/share/mk/bsd.sys.mk
Modified: head/share/mk/bsd.sys.mk
==============================================================================
--- head/share/mk/bsd.sys.mk Wed Oct 21 16:12:09 2009 (r198334)
+++ head/share/mk/bsd.sys.mk Wed Oct 21 17:07:46 2009 (r198335)
@@ -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"
More information about the svn-src-all
mailing list