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.
This commit is contained in:
parent
b090e4ce1f
commit
35ad1b00b4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user