This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Mainline merge plan
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Richard Earnshaw <rearnsha at arm dot com>, law at redhat dot com, Diego Novillo <dnovillo at redhat dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Fri, 27 Feb 2004 11:52:03 +0000
- Subject: Re: [tree-ssa] Mainline merge plan
- Organization: ARM Ltd.
- Reply-to: Richard Earnshaw <rearnsha at arm dot com>
> > I'm not going to express an opinion as to whether -rpath options are
> > sensible or not beyond noting that a system that requires all libraries to
> > be installed in /usr/lib isn't a good idea either.
>
> Sure. For that reason, you should encourage the netbsd folks
> to fix this:
>
> > Other than /usr/lib,
> > NetBSD systems only search for libraries in the places given by RPATH
> > entries in the image, or in LD_LIBRARY_PATH in the environment.
>
> ... and use something like /etc/ld.so.conf.
That's the way it used to work in the a.out days. As I understand it,
when they changed to ELF they deliberately dropped that approach. In
general it's far more efficient for an app to search just the library
directories it needs rather than a huge list of random places.
Not withstanding all this, I don't think GCC should be dictating to OS
developers how they should implement shared library policies.
R.