Subject: Re: patch to allow /etc/ld.so.conf configure directories for ELF
To: Guenther Grau <Guenther.Grau@bk.bosch.de>
From: Giles Lean <giles@nemeton.com.au>
List: tech-userlevel
Date: 03/12/1999 07:54:37
On Thu, 11 Mar 1999 20:54:33 +0100 Guenther Grau wrote:
> "Chris G. Demetriou" wrote:
> >
> > (1) the paths specified in RPATH directives are correct, and the paths
> > in ld.so.conf are therefore unnecessary, or
> >
> > (2) the paths specified in RPATH directives are incorrect, in which
> > case you want to use ld.so.conf's paths, but may encounter
> > ... interesting behaviour if there exist libraries you're searching
> > for in the RPATH'd directory/directories...
>
> Is there any tool with which a compiled in RPATH can be changed?
> In HP-UX there is chatr, which allows you to modify these settings.
> Do we have sth. like this for ELF as well?
HP-UX also allows specification of the manner of searching for
libraries:
- use the compiled in path (only)
- use the compiled in path first, then SHLIB_PATH(*)
- use SHLIB_PATH first, then the compiled in path
- use SHLIB_PATH (only)
This is very flexible, but I'm yet to find need for this much
flexibility so I'm not sure it is a good idea or not. ;-)
Regards,
Giles
* With 64 bit HP-UX executables (which use ELF) SHLIB_PATH is
supplemented with LD_LIBRARY_PATH, and ldd can be used as well as
chatr.