Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jul 2011 18:01:46 +0200
From:      Robert Millan <rmh@debian.org>
To:        Benjamin Kaduk <kaduk@mit.edu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: [PATCH] Remove -nostdinc in aicasm
Message-ID:  <CAOfDtXPS6VAAVXtencXdzQ_VmHQT3=pkm7AB9_Po4tqGW49T0A@mail.gmail.com>
In-Reply-To: <alpine.GSO.1.10.1107021120450.6818@multics.mit.edu>
References:  <CAOfDtXNRwaa8VrnhXZsgFb3uPTFPxZYXtLWX3WHMAq8PQaP7Wg@mail.gmail.com> <alpine.GSO.1.10.1107021120450.6818@multics.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
2011/7/2 Benjamin Kaduk <kaduk@mit.edu>:
> There is a functional difference between '-nostdinc -I/usr/include -I.' e=
ven
> when the standard include search path is just /usr/include -- the standar=
d
> include paths are always searched last (unless -nostdinc is given), even =
if
> they are explicitly listed on the command line. =C2=A0If there are confli=
cting
> definitions in /usr/local/foo.h and ./foo.h, this gimmick can be necessar=
y
> to pull in the correct version. =C2=A0(I've needed to do this when packag=
ing
> software for the freebsd ports collection, though with /usr/local/include
> replacing '.'.)

In this case I'd rather be safe than sorry and use -iwithprefix or
-isystem `gcc --print-file-name=3D` on GCC only.

What is the recommended way to check the compiler flavour and version
from FreeBSD Makefiles?

--=20
Robert Millan



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