aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/binutils-pass2.xml
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2012-03-27 20:10:11 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2012-03-27 20:10:11 +0000
commit6f227bc82c2bf70495240925bb81002f888a131e (patch)
treeb418b901c8a697d789259376174b07352f47ba4f /chapter05/binutils-pass2.xml
parentf7d98e89550dfb9a93027fccd82272034bd02d1b (diff)
Add a patch to fix building Binutils with -O3 optimization
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9791 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/binutils-pass2.xml')
-rw-r--r--chapter05/binutils-pass2.xml4
1 files changed, 4 insertions, 0 deletions
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/" \