summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/kmod.mk6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index fb06870..a1c48d2 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -80,16 +80,12 @@ CFLAGS+= -D_KERNEL
CFLAGS+= -DKLD_MODULE
# Don't use any standard or source-relative include directories.
-# Since -nostdinc will annull any previous -I paths, we repeat all
-# such paths after -nostdinc. It doesn't seem to be possible to
-# add to the front of `make' variable.
-_ICFLAGS:= ${CFLAGS:M-I*}
.if ${CC} == "icc"
NOSTDINC= -X
.else
NOSTDINC= -nostdinc
.endif
-CFLAGS+= ${NOSTDINC} -I- ${INCLMAGIC} ${_ICFLAGS}
+CFLAGS:= ${CFLAGS:N-I*} ${NOSTDINC} -I- ${INCLMAGIC} ${CFLAGS:M-I*}
.if defined(KERNBUILDDIR)
CFLAGS+= -DHAVE_KERNEL_OPTION_HEADERS -include ${KERNBUILDDIR}/opt_global.h
.endif
OpenPOWER on IntegriCloud