aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06
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 /chapter06
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 'chapter06')
-rw-r--r--chapter06/binutils.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/chapter06/binutils.xml b/chapter06/binutils.xml
index f5ff0d27f..0b044b108 100644
--- a/chapter06/binutils.xml
+++ b/chapter06/binutils.xml
@@ -69,6 +69,10 @@ sed -i.bak '/^INFO/s/standards.info //' etc/Makefile.in</userinput></screen>
<screen><userinput remap="pre">sed -i "/exception_defines.h/d" ld/testsuite/ld-elf/new.cc
sed -i "s/-fvtable-gc //" ld/testsuite/ld-selective/selective.exp</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>The Binutils documentation recommends building Binutils outside of the
source directory in a dedicated build directory:</para>