From 85cdcb09807abdf8f3514dc174d97c74afcb73cf Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 24 Aug 2022 23:42:27 +0800 Subject: 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). --- chapter08/glibc.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'chapter08') 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 By default, the dynamic loader (/lib/ld-linux.so.2) searches through - /lib and /usr/lib for dynamic libraries that are - needed by programs as they are run. However, if there are libraries in - directories other than /lib and + /usr/lib for dynamic libraries + that are needed by programs as they are run. However, if there are + libraries in directories other than /usr/lib, these need to be added to the /etc/ld.so.conf file in order for the dynamic loader to find them. Two directories that are commonly known -- cgit v1.2.3-54-g00ecf