public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/25846] New: Provide method to show loader search directories
@ 2020-04-17 22:38 nicholson at endlessm dot com
  2020-04-17 22:38 ` [Bug dynamic-link/25846] " nicholson at endlessm dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: nicholson at endlessm dot com @ 2020-04-17 22:38 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=25846

            Bug ID: 25846
           Summary: Provide method to show loader search directories
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: nicholson at endlessm dot com
  Target Milestone: ---

Created attachment 12478
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12478&action=edit
ldconfig: Add --print-dirs option

Currently there's no way to know the exact search path that the dynamic loader
uses. You can parse the entries in /etc/ld.so.conf (following any include
statements), but that doesn't include the "standard" builtin directories. A
good guess can be made with /lib and /usr/lib, but ultimately it depends on how
glibc was built. This can often miss things like /usr/lib64 or
/usr/lib/$(arch_triplet) in common use.

There should be a method to obtain the directories that the dynamic loader
searches. This would also absolve users from having to parse /etc/ld.so.conf in
an error prone way. This information is particularly useful to tools that deal
with building or installing libraries such as libtool.

The attached patch adds an option to ldconfig to handle this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-01-27 15:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-17 22:38 [Bug dynamic-link/25846] New: Provide method to show loader search directories nicholson at endlessm dot com
2020-04-17 22:38 ` [Bug dynamic-link/25846] " nicholson at endlessm dot com
2020-04-17 22:47 ` ijaffery7 at gmail dot com
2020-04-20  9:13 ` fweimer at redhat dot com
2020-05-03 20:49 ` nicholson at endlessm dot com
2020-05-04  4:14 ` fw at deneb dot enyo.de
2022-01-27 15:45 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).