[PATCH] Remove -nostdinc in aicasm
Matthias Andree
matthias.andree at gmx.de
Sat Jul 2 22:09:48 UTC 2011
Am 02.07.2011 17:25, schrieb Benjamin Kaduk:
> On Sat, 2 Jul 2011, Robert Millan wrote:
>
>> 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".
>
> There is a functional difference between '-nostdinc -I/usr/include -I.'
> even when the standard include search path is just /usr/include -- the
> standard include paths are always searched last (unless -nostdinc is
> given), even if they are explicitly listed on the command line. If
> there are conflicting definitions in /usr/local/foo.h and ./foo.h, this
> gimmick can be necessary to pull in the correct version. (I've needed
> to do this when packaging software for the freebsd ports collection,
> though with /usr/local/include replacing '.'.)
Note that there are GCC-version-specific directories for the more
intricate details such as stdarg.h and compiler-specific builtins -- you
don't get those with -I/usr/include either.
More information about the freebsd-hackers
mailing list