aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/binutils-pass1.xml4
-rw-r--r--chapter05/binutils-pass2.xml4
2 files changed, 8 insertions, 0 deletions
diff --git a/chapter05/binutils-pass1.xml b/chapter05/binutils-pass1.xml
index 9c9f6225f..6d596ce67 100644
--- a/chapter05/binutils-pass1.xml
+++ b/chapter05/binutils-pass1.xml
@@ -70,6 +70,10 @@ cd ../binutils-build</userinput></screen>
<note><para>The approximate build SBU values and required disk space
in Chapter 5 does not include test suite data.</para></note>
+ <para>Apply a patch to prevent a build failure when using compiler optimizations:</para>
+
+<screen><userinput remap="pre">patch -Np1 -i ../&binutils-build-patch;</userinput></screen>
+
<para>Now prepare Binutils for compilation:</para>
<screen><userinput remap="configure">../binutils-&binutils-version;/configure --target=$LFS_TGT \
diff --git a/chapter05/binutils-pass2.xml b/chapter05/binutils-pass2.xml
index 03e55ca1e..5a0ea6900 100644
--- a/chapter05/binutils-pass2.xml
+++ b/chapter05/binutils-pass2.xml
@@ -48,6 +48,10 @@
<screen><userinput remap="pre">mkdir -v ../binutils-build
cd ../binutils-build</userinput></screen>
+ <para>Apply a patch to prevent a build failure when using compiler optimizations:</para>
+
+<screen><userinput remap="pre">patch -Np1 -i ../&binutils-build-patch;</userinput></screen>
+
<para>Prepare Binutils for compilation:</para>
<screen><userinput remap="configure">CC="$LFS_TGT-gcc -B/tools/lib/" \