From 6f227bc82c2bf70495240925bb81002f888a131e Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Tue, 27 Mar 2012 20:10:11 +0000 Subject: 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 --- chapter06/binutils.xml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chapter06') 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 sed -i "/exception_defines.h/d" ld/testsuite/ld-elf/new.cc sed -i "s/-fvtable-gc //" ld/testsuite/ld-selective/selective.exp + Apply a patch to prevent a build failure when using compiler optimizations: + +patch -Np1 -i ../&binutils-build-patch; + The Binutils documentation recommends building Binutils outside of the source directory in a dedicated build directory: -- cgit v1.2.3-54-g00ecf