aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-08-24 23:42:27 +0800
committerXi Ruoyao <xry111@xry111.site>2022-08-24 23:42:27 +0800
commit85cdcb09807abdf8f3514dc174d97c74afcb73cf (patch)
treeefe527da0a9845561dd6004c60a84bbc5a4c079b
parent098f4de3369ae0fc7d50fc6060b059eb5627de4e (diff)
glibc: don't mention "/lib" as ld.so search path anymore
Text change only. Since 11.0, /lib is a symlink to usr/lib. With libc_cv_slibdir=/usr/lib, /lib won't be searched by default anymore (if someone mess up the system by removing /lib symlink and create an real directory there, for example the initramfs before r10.1-439).
-rw-r--r--chapter08/glibc.xml7
1 files changed, 3 insertions, 4 deletions
diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml
index 7a1796a54..ff7ba02f5 100644
--- a/chapter08/glibc.xml
+++ b/chapter08/glibc.xml
@@ -448,10 +448,9 @@ unset ZONEINFO</userinput></screen>
<para>By default, the dynamic loader (<filename
class="libraryfile">/lib/ld-linux.so.2</filename>) searches through
- <filename class="directory">/lib</filename> and <filename
- class="directory">/usr/lib</filename> for dynamic libraries that are
- needed by programs as they are run. However, if there are libraries in
- directories other than <filename class="directory">/lib</filename> and
+ <filename class="directory">/usr/lib</filename> for dynamic libraries
+ that are needed by programs as they are run. However, if there are
+ libraries in directories other than
<filename class="directory">/usr/lib</filename>, these need to be added
to the <filename>/etc/ld.so.conf</filename> file in order for the
dynamic loader to find them. Two directories that are commonly known