This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add --print-dirs option for ldconfig
- From: Dan Nicholson <dbn dot lists at gmail dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Roland McGrath <roland at hack dot frob dot com>, libc-alpha at sourceware dot org
- Date: Sat, 12 May 2012 07:24:19 -0700
- Subject: Re: [PATCH] Add --print-dirs option for ldconfig
- References: <1333225410-20724-1-git-send-email-dbn.lists@gmail.com><20120331210756.AD8972C0C5@topped-with-meat.com><20120401160854.GA10330@buster.dwcab.com><20120402164541.066C92C081@topped-with-meat.com><20120402172807.GA11723@buster.dwcab.com><20120402181419.6D81C2C07E@topped-with-meat.com><20120403003507.GA25174@buster.dwcab.com><20120511215748.E27D42C0BE@topped-with-meat.com><CAMs08DLBoyK9cjAuHDsLShbk3nroSN4U8d+j8vDp-ynVzSH2YA@mail.gmail.com><m2fwb5hdkm.fsf@igel.home>
On Sat, May 12, 2012 at 3:57 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Dan Nicholson <dbn.lists@gmail.com> writes:
>
>> 2. A canonical representation of the system library paths. Right now
>> it's usually /lib:/usr/lib on x86 and /lib64:/lib:/usr/lib64:/usr/lib
>> on x86_64, I think. I only know that from convention, though. What if
>> I'm on a Debian system?
>
> Everything departing from the default is in /etc/ld.so.conf.
What's "the default"? I don't see it recorded in any glibc
documentation. Unless you're "in the know", how would you know that
/libx32 was now a valid directory? Why should I have to detect if I'm
on a 32 or 64 bit system and then guess what the system directories
are? What if the system path is changed like on Debian? Why should I
go dig through /etc/ld.so.conf and /etc/ld.so.conf.d when ldconfig is
already parsing those files just fine? Why can't glibc just tell me
what the paths are?
ldconfig seems like the perfect place to get this information.
ldconfig = dynamic linker configuration. Seems reasonable for it to
tell you what the configuration is.
--
Dan