Re:

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

 



On 11/27/2013 08:42 PM, Johannes Lorenz wrote:
>> I didn't say that you should compile a new glibc.  I assumed that was
>> your goal.  It is an eccentric thing to be doing.
> 
> Ok, so one possibility would be to use a new gcc + ld on an old
> glibc, correct?

Yes.  I'd use the system's binutils if they work.

> What would be the correct way to do that? If a library is found in
> the local installation, it was from our gcc (e.g.:
> ~/local/lib/gcc...), so we use it, but if it was not found, get it
> from the system, i.e. /usr/lib. The same for the headers. How to
> tell gcc to behave like that?

That's what it does by default.  Just configure, build, and install
GCC, and programs will use its libraries.  You might need to use
ldconfig to configure the system to use the new libaries, but this
needs to be done with great care.  It's better to set a default
LD_LIBRARY_PATH.

Andrew.




[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