diff options
author | ru <ru@FreeBSD.org> | 2005-11-29 09:37:42 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-11-29 09:37:42 +0000 |
commit | 8ec6103050ddca35beb6617eea771c75642cc225 (patch) | |
tree | 8e9e0ee72526419f805154cc66067f02c0a4c6a1 /sys/conf/kmod.mk | |
parent | 7abe9e6ffe612f8a9e1d7ea439c090185b48e4c4 (diff) | |
download | FreeBSD-src-8ec6103050ddca35beb6617eea771c75642cc225.zip FreeBSD-src-8ec6103050ddca35beb6617eea771c75642cc225.tar.gz |
Drop the -I/usr/include (or any of its variants) from CFLAGS.
The sys/sys/stddef.h is here for some time now to fulfil the
kernel needs. It also was not reliable due to the exists(@)
check: in an empty module directory, "make depend; mv .depend
.depend~; make depend" ran mkdep(1) with different arguments.
Diffstat (limited to 'sys/conf/kmod.mk')
-rw-r--r-- | sys/conf/kmod.mk | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 6cc5e65..90b79d8 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -99,20 +99,6 @@ CFLAGS+= -I. -I@ # for example. CFLAGS+= -I@/contrib/altq -# Add a -I path to standard headers like <stddef.h>. Use a relative -# path to src/include if possible. If the @ symlink hasn't been built -# yet, then we can't tell if the relative path exists. Add both the -# potential relative path and an absolute path in that case. -.if exists(@) -.if exists(@/../include) -CFLAGS+= -I@/../include -.else -CFLAGS+= -I${DESTDIR}/usr/include -.endif -.else # !@ -CFLAGS+= -I@/../include -I${DESTDIR}/usr/include -.endif # @ - .if ${CC} != "icc" CFLAGS+= -finline-limit=${INLINE_LIMIT} .endif |