aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/binutils-pass2.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/binutils-pass2.xml')
-rw-r--r--chapter06/binutils-pass2.xml16
1 files changed, 10 insertions, 6 deletions
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 @@
<sect2 role="installation">
<title>Installation of Binutils</title>
+ <!-- Don't remove this until Binutils upstream updates the libtool
+ copy. On some host distros the issue doesn't show up. -->
+ <para>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:</para>
+
+<screen><userinput remap="pre">sed '6009s/$add_dir//' -i ltmain.sh</userinput></screen>
+
<para>Create a separate build directory again:</para>
<screen><userinput remap="pre">mkdir -v build
@@ -85,13 +93,9 @@ cd build</userinput></screen>
<screen><userinput remap="make">make</userinput></screen>
- <para>Install the package, and
- workaround an issue causing
- <filename class="libraryfile">libctf.so</filename>
- to link against zlib from the host distribution:</para>
+ <para>Install the package:</para>
-<screen><userinput remap="install">make DESTDIR=$LFS install
-install -vm755 libctf/.libs/libctf.so.0.0.0 $LFS/usr/lib</userinput></screen>
+<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
</sect2>