Re: gcc46 header search path

2012-07-07 Thread David Chisnall
On 6 Jul 2012, at 23:29, Andriy Gapon wrote: I think that this is a dummy argument. One could easily want his LOCALBASE to be /opt and the real ports system should support that. So what ports currently do, they really have to do (assuming $LOCALBASE as opposed to /usr/local). That's

Re: gcc46 header search path

2012-07-06 Thread Andriy Gapon
: gcc46 header search path on 05/07/2012 17:15 Andriy Gapon said the following: Gerald, while thinking what to reply in our other conversation I ran into another issue with gcc46: $ echo | cpp46 -v [trim] #include ... search starts here: #include ... search starts here: /usr/local/lib

Re: gcc46 header search path

2012-07-06 Thread Andriy Gapon
on 06/07/2012 19:21 Warner Losh said the following: I didn't, because I know the standard behavior. Turns out, I don't know today's standard behavior, just the historical behavior of gcc, which has changed over the life of FreeBSD. FreeBSD's standard compiler has never included it. There

Re: gcc46 header search path

2012-07-06 Thread Warner Losh
On Jul 6, 2012, at 1:11 PM, David Chisnall wrote: On 6 Jul 2012, at 17:54, Andriy Gapon wrote: Yeah. Honestly speaking I myself was not aware of what is written in that link and I thought that our gcc ports (from ports) added /usr/local/include to the default search path by some

Re: gcc46 header search path

2012-07-06 Thread Dimitry Andric
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

Re: gcc46 header search path

2012-07-06 Thread Andriy Gapon
on 06/07/2012 22:11 David Chisnall said the following: On 6 Jul 2012, at 17:54, Andriy Gapon wrote: Yeah. Honestly speaking I myself was not aware of what is written in that link and I thought that our gcc ports (from ports) added /usr/local/include to the default search path by some