From 17f0c1eca6918f99a39bf050c4d8e6fda2df9f38 Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 14 Oct 2005 15:13:36 +0000 Subject: Get rid of duplicate -I's in CFLAGS. --- sys/conf/kmod.mk | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sys/conf') 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 -- cgit v1.1