[cfe-dev] A couple of questions about include search paths

Roman Divacky rdivacky at freebsd.org
Mon Oct 18 09:13:57 PDT 2010


On Mon, Oct 18, 2010 at 11:52:32AM -0400, Rafael Esp??ndola wrote:
> On 18 October 2010 07:16, arrowdodger <6yearold at gmail.com> wrote:
> > As a FreeBSD user, I can tell that our base gcc (4.2.1) does not look into
> > /usr/local/include at all. All system headers are located in /usr/include
> > and all third party includes go into /usr/local/include. This makes possible
> > to use, for example, two versions of OpenSSL simultaneously.
> > So, if clang will start searching in /usr/local/include first, it would be
> > slightly unexcepted.
> 
> We have a bug on FreeBSD then. Clang should not search
> /usr/local/include if the system compiler does not. I am guessing that
> the other BSD systems do the same, so the attached patch should fix
> it.
> 
> Do the BSD guys think it is OK?

no... the system gcc (ie. /usr/bin/gcc) does not search /usr/local/include.

any other gcc search /usr/local/include as well.. so clang is ok



More information about the cfe-dev mailing list