From 09e3f94d7c95b67f3cc81f820bb8031ec1056657 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 23 Feb 2020 06:56:18 +0000 Subject: As pointed by Tadeus Prastowo, two command explanations have to be reworded git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11758 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/binutils-pass2.xml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'chapter05/binutils-pass2.xml') diff --git a/chapter05/binutils-pass2.xml b/chapter05/binutils-pass2.xml index c281f92fa..4e3dcb9f6 100644 --- a/chapter05/binutils-pass2.xml +++ b/chapter05/binutils-pass2.xml @@ -86,10 +86,16 @@ RANLIB=$LFS_TGT-ranlib \ --with-sysroot - The sysroot feature enables the linker to find shared objects - which are required by other shared objects explicitly included on the - linker's command line. Without this, some packages may not build - successfully on some hosts. + This defines a default (non-existent) sysroot directory + /tools/$LFS_TGT/sys-root. + It is useful when looking for shared objects which are required by + other shared objects explicitly included on the linker's command + line. Those objects are searched into the directories listed in + <sysroot>/etc/ld.so.conf, and failing + that, into the linker search path, which is right. If this switch + is not given, /etc/ld.so.conf on the host + is used, that is, programs may be linked to libraries on + the host, which we want to avoid. -- cgit v1.2.3-54-g00ecf