This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: when GCC searches the system include directories, "/usr/include" first, or "usr/lib/gcc/include", "usr/local/lib/gcc/include" first?


On 5/18/2010 5:48 PM, Ian Lance Taylor wrote:
Song Du<sdu@marvell.com> writes:

Curious question: why to search /usr/local/include before
/usr/include? And what is the original intention to have /usr and
/usr/local both, rather than just /usr?
Historically the OS vendor controlled /usr and /usr/include, while
system owners installed their own libraries in /usr/local/include.

Ian
The order in which /usr/ and /usr/local/ are searched seems arbitrary and subject to change. Sometimes it depends on which method you choose to open your session, as well as on the whims of the person who built your distro.

--
Tim Prince


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]