mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00:00
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
This commit is contained in:
parent
8e700fb80c
commit
1597a611c5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=187723
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user