diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2009-01-26 17:00:58 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2009-01-26 17:00:58 +0000 |
commit | afd79b014fb094ddd0a64a1a3959dafc4150c0c9 (patch) | |
tree | 4c75f85fb2efb13622a79256a91145e6d7c4f880 /sys/conf | |
parent | 9b5c4f4d39545e53947961eadb4ab9d059be7beb (diff) | |
download | FreeBSD-src-afd79b014fb094ddd0a64a1a3959dafc4150c0c9.zip FreeBSD-src-afd79b014fb094ddd0a64a1a3959dafc4150c0c9.tar.gz |
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
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/kmod.mk | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 4fa4fde..e6253f5 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -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 |