[PATCH] Remove -nostdinc in aicasm
Robert Millan
rmh at debian.org
Sat Jul 2 15:11:51 UTC 2011
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
-------------- next part --------------
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
More information about the freebsd-hackers
mailing list