diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 97fff77a0..151814f06 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,17 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2022-02-10 + + + [xry111] - Workaround the issue causing binaries link to + libraries from the host distro for pass 2 binutils. It's now + unnecessary to build zlib in chapter 6. + + + + 2022-02-09 diff --git a/chapter06/binutils-pass2.xml b/chapter06/binutils-pass2.xml index 414d782b3..e55bcf92b 100644 --- a/chapter06/binutils-pass2.xml +++ b/chapter06/binutils-pass2.xml @@ -43,6 +43,14 @@ Installation of Binutils + + Binutils ships an outdated libtool copy in the tarball. It lacks + sysroot support so the produced binaries will be mistakenly linked to + libraries from the host distro. Workaround this issue: + +sed '6009s/$add_dir//' -i ltmain.sh + Create a separate build directory again: mkdir -v build @@ -85,13 +93,9 @@ cd build make - Install the package, and - workaround an issue causing - libctf.so - to link against zlib from the host distribution: + Install the package: -make DESTDIR=$LFS install -install -vm755 libctf/.libs/libctf.so.0.0.0 $LFS/usr/lib +make DESTDIR=$LFS install diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index 1b1ee40bc..366e9a8ab 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -28,7 +28,6 @@ - diff --git a/chapter06/zlib.xml b/chapter06/zlib.xml deleted file mode 100644 index d3f66c8cc..000000000 --- a/chapter06/zlib.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - %general-entities; -]> - - - - - - zlib - &zlib-version; -
&zlib-url;
-
- - Zlib-&zlib-version; - - - Zlib - - - - - - <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" - href="../chapter08/zlib.xml" - xpointer="xpointer(/sect1/sect2[1]/para[1])"/> - - <segmentedlist> - <segtitle>&buildtime;</segtitle> - <segtitle>&diskspace;</segtitle> - - <seglistitem> - <seg>&zlib-tmp-sbu;</seg> - <seg>&zlib-tmp-du;</seg> - </seglistitem> - </segmentedlist> - - </sect2> - - <sect2 role="installation"> - <title>Installation of Zlib - - Prepare Zlib for compilation: - - ./configure --prefix=/usr - - Compile the package: - -make - - Install the package: - -make DESTDIR=$LFS install - - - - - - <para>Details on this package are located in - <xref linkend="contents-zlib" role="."/> - </para> - - </sect2> - -</sect1>