[PATCH v2 1/4] man/man5/ld.so.conf.5: document include syntax
DJ Delorie <[email protected]> Tue, 14 Jul 2026 22:58:09 -0400
| Newsgroups | org.kernel.vger.linux-man |
|---|---|
| Message-ID | <ad382eef274a64bfa0724a31f09846948a84142b.1784084289.git.dj@redhat.com> |
--- man/man5/ld.so.conf.5 | 28 ++++++++++++++++++++++++++++ man/man8/ldconfig.8 | 2 -- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/man/man5/ld.so.conf.5 b/man/man5/ld.so.conf.5 index 481cf9152..25f9adf90 100644 --- a/man/man5/ld.so.conf.5 +++ b/man/man5/ld.so.conf.5 @@ -9,6 +9,34 @@ .SH DESCRIPTION This file contains a list of directories, one per line, in which to search for libraries. +.P +The file +(and any other files included by it) +is parsed by +.B \%ldconfig +and the results stored in +.IR /etc/ld.so.cache . +.P +The syntax allows lines to start with the word +.I include +followed by a path wildcard, +and will include any files matching that wildcard. +The wildcard is a path specification in the +.BR \%glob (7) +format. +Files matching that wildcard will be processed +as if their contents were included in the main config file. +.P +Example config file: +.IP +.in +4n +.EX +/lib +/usr/lib +/usr/local/lib +include /etc/ld.so.conf.d/*.conf +.EE +.in .SH FILES .I /etc/ld.so.conf .SH SEE ALSO diff --git a/man/man8/ldconfig.8 b/man/man8/ldconfig.8 index 9ac146b44..cb7d62ccc 100644 --- a/man/man8/ldconfig.8 +++ b/man/man8/ldconfig.8 @@ -178,8 +178,6 @@ .SH OPTIONS is also specified, the cache is still rebuilt. .SH FILES -.\" FIXME Since glibc-2.3.4, "include" directives are supported in ld.so.conf -.\" .\" FIXME Since glibc-2.4, "hwcap" directives are supported in ld.so.conf .PD 0 .TP -- 2.47.3