gcc46 header search path

Andriy Gapon avg at FreeBSD.org
Fri Jul 6 22:32:05 UTC 2012


on 07/07/2012 00:45 Dimitry Andric said the following:
> On 2012-07-06 22:44, Warner Losh wrote:
> ...
>> The reasons are that /usr/local/include superceds anything in /usr/include.  This is dangerous.  Users should get just the system default libraries and headers when they compile unless they ask for more.  That's what makes it stupid.
> 
> Well, one issue is that it becomes tricky to *remove* /usr/local/include
> from the include path, if you so desire, since it's built-in...  Unless
> you start fiddling with -nostdinc, but that is rather painful.
> 

My opinion is that system builds (buildworld, buildkernel) must use -nostdinc.
Other types of build should accept the state of matters.

-- 
Andriy Gapon




More information about the freebsd-toolchain mailing list