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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/18/2010 5:48 PM, Ian Lance Taylor wrote:
Song Du<sdu@xxxxxxxxxxx>  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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux