summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-10-14 15:13:36 +0000
committerru <ru@FreeBSD.org>2005-10-14 15:13:36 +0000
commit17f0c1eca6918f99a39bf050c4d8e6fda2df9f38 (patch)
tree9f0ee144374a94d5df0d748cef48819ba5ce9a63
parent2f80bbb22b650d9a3db122569eb100022a1f100a (diff)
downloadFreeBSD-src-17f0c1eca6918f99a39bf050c4d8e6fda2df9f38.zip
FreeBSD-src-17f0c1eca6918f99a39bf050c4d8e6fda2df9f38.tar.gz
Get rid of duplicate -I's in CFLAGS.
-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