This is the mail archive of the gcc@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: LD_LIBRARY_PATH


Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> writes:

> This is an issue coming up again and again, and it really seems to
> burn users, especially since we switched to libgcc_s.so.
> 
> http://gcc.gnu.org/java/build-snapshot.html already has a bit on
> LD_LIBRARY_PATH, though I believe we also need something in our main
> installation documentation.
> 
> The questions is: What exactly do we want to document, and how?  Do
> we just want to state
> 
>   After the installation, you will probably need to add $prefix/lib
>   to LD_LIBRARY_PATH, so that dynamic executable can locate their
>   libraries
> 
> or something more elaborate?

If we do want something more descriptive, the rule is that libraries
from newer versions of GCC should be preferred over libraries from
earlier versions, but when the libraries don't conflict, both should
be installed.  This can be done by using LD_LIBRARY_PATH, or by
copying the files into appropriate locations, or a bunch of other
ways depending on the user's system configuration.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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