diff options
author | Xi Ruoyao <xry111@xry111.site> | 2022-08-24 23:42:27 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2022-08-24 23:42:27 +0800 |
commit | 85cdcb09807abdf8f3514dc174d97c74afcb73cf (patch) | |
tree | efe527da0a9845561dd6004c60a84bbc5a4c079b /chapter08 | |
parent | 098f4de3369ae0fc7d50fc6060b059eb5627de4e (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).
Diffstat (limited to 'chapter08')
-rw-r--r-- | chapter08/glibc.xml | 7 |
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 |