Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2009 17:00:58 +0000 (UTC)
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187723 - head/sys/conf
Message-ID:  <200901261700.n0QH0wFi056320@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rdivacky
Date: Mon Jan 26 17:00:58 2009
New Revision: 187723
URL: http://svn.freebsd.org/changeset/base/187723

Log:
  kmod.mk includes bsd.sys.mk anyway so use CSTD instead of homegrown
  reimplementation of the same. Note that this changes -std=c99
  to -std=iso9899:1999 but those two are synonyms.
  
  Approved by:	kib (mentor)
  Reviewed by:	ru

Modified:
  head/sys/conf/kmod.mk

Modified: head/sys/conf/kmod.mk
==============================================================================
--- head/sys/conf/kmod.mk	Mon Jan 26 16:43:18 2009	(r187722)
+++ head/sys/conf/kmod.mk	Mon Jan 26 17:00:58 2009	(r187723)
@@ -89,10 +89,9 @@ CFLAGS+=	-DKLD_MODULE
 .if ${CC} == "icc"
 NOSTDINC=	-X
 .else
-C_DIALECT=	-std=c99
+CSTD=		c99
 NOSTDINC=	-nostdinc
 .endif
-CFLAGS+=	${C_DIALECT}
 CFLAGS:=	${CFLAGS:N-I*} ${NOSTDINC} ${INCLMAGIC} ${CFLAGS:M-I*}
 .if defined(KERNBUILDDIR)
 CFLAGS+=	-DHAVE_KERNEL_OPTION_HEADERS -include ${KERNBUILDDIR}/opt_global.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901261700.n0QH0wFi056320>