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

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Oct 18 08:52:32 PDT 2010


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?

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 1287 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101018/43ea4aff/attachment.bin>


More information about the cfe-dev mailing list