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: [tree-ssa] Mainline merge plan


> > 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.


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