This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PR ld/2290, /etc/ld.so.conf search
On Thu, Apr 06, 2006 at 08:53:32AM -0400, Mike Frysinger wrote:
> On Wednesday 05 April 2006 10:20, Alan Modra wrote:
> > I think the best solution to this problem is for ld to look in
> > ${prefix}/etc/ld.so.conf, if it exists, before looking in
> > /etc/ld.so.conf. ${prefix}/etc/ld.so.conf happens to be the default
> > location of glibc's ld.so configuration file, except for --prefix=/usr
> > which uses /etc/ld.so.conf by default.
>
> would it be a good idea to have ld not bother with ${prefix}/etc/ld.so.conf
> when ${prefix} == /usr just like glibc ?
I did consider doing that, but decided against it because it seemed an
unnecessary complication. The only time it would ever matter is if
/usr/etc/ld.so.conf existed and wasn't equivalent to /etc/ld.so.conf.
--
Alan Modra
IBM OzLabs - Linux Technology Centre