Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jul 2011 17:11:51 +0200
From:      Robert Millan <rmh@debian.org>
To:        freebsd-hackers@freebsd.org, Ed Maste <emaste@freebsd.org>, obrien@freebsd.org
Subject:   [PATCH] Remove -nostdinc in aicasm
Message-ID:  <CAOfDtXNRwaa8VrnhXZsgFb3uPTFPxZYXtLWX3WHMAq8PQaP7Wg@mail.gmail.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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

[-- Attachment #2 --]
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
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOfDtXNRwaa8VrnhXZsgFb3uPTFPxZYXtLWX3WHMAq8PQaP7Wg>