The userland aicasm utility in sys/dev/aic7xxx/aicasm/Makefile is being
built with "-nostdinc -I/usr/include" options.  Unfortunately this breaks
building aicasm on systems using the upstream version of GCC, where
"-nostdinc" disables more search directories than are enabled by
"-I/usr/include".

This was introduced by obrien (CCed) in 2002, apparently to remove a
warning.  I've verified that removing it doesn't produce any warnings
on FreeBSD 9-CURRENT environment.

Please consider this patch to remove -nostdinc in that file.

-- 
Robert Millan
Index: sys/dev/aic7xxx/aicasm/Makefile
===================================================================
--- sys/dev/aic7xxx/aicasm/Makefile     (revision 223721)
+++ sys/dev/aic7xxx/aicasm/Makefile     (working copy)
@@ -24,8 +24,7 @@
 DEPENDFILE=    .depend_aicasm
 .endif
 
-NOSTDINC=      -nostdinc
-CFLAGS+= ${NOSTDINC} -I/usr/include -I.
+CFLAGS+= -I.
 .ifdef MAKESRCPATH
 CFLAGS+= -I${MAKESRCPATH}
 .endif
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to