On Fri, 8 Oct 2010, Peter Holm wrote:

Log:
 Ensure that a make from sys/boot does not pick up include files from
 /usr/include.

 Discussed with:         kib

Modified:
 head/sys/boot/i386/gptboot/Makefile

Modified: head/sys/boot/i386/gptboot/Makefile
==============================================================================
--- head/sys/boot/i386/gptboot/Makefile Fri Oct  8 09:43:06 2010        
(r213567)
+++ head/sys/boot/i386/gptboot/Makefile Fri Oct  8 10:27:52 2010        
(r213568)
@@ -36,6 +36,7 @@ CFLAGS=       -DBOOTPROG=\"gptboot\" \
        -I${.CURDIR}/../common \
        -I${.CURDIR}/../btx/lib -I. \
        -I${.CURDIR}/../boot2 \
+       -I${.CURDIR}/../../.. \
        -Wall -Waggregate-return -Wbad-function-cast -Wcast-align \
        -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
        -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \


This should be handled by setting -nostdinc in the top-level Makefile.inc,
as was done in 1998 or earlier by sys/i386/boot/Makefile.inc (the
sys/boot hierarchy is still of amazingly lower quality than the
sys/i386/boot hierarchy), or in a central foo.mk Makefile as is done
for kernels and modules.

Bruce
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to