mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
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
This commit is contained in:
parent
f7d98e8955
commit
6f227bc82c
@ -39,6 +39,10 @@
|
||||
<listitem>
|
||||
<para>2012-03-27</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>[matthew] - Add a patch to fix building of Binutils with the
|
||||
-O3 compiler flag. Thanks to Pierre Labastie for the report.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>[matthew] - Add the GCC fix patch back to Glibc instructions
|
||||
to fix a build issue on 32-bit hosts. Thanks to Pierre Labastie for
|
||||
|
@ -223,6 +223,10 @@
|
||||
<para>&bash-fixes-patch;</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>&binutils-build-patch;</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>&gcc-startfiles-patch;</para>
|
||||
</listitem>
|
||||
|
@ -26,6 +26,14 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>Binutils Build Fix Patch - <token>&binutils-build-patch-size;</token>:</term>
|
||||
<listitem>
|
||||
<para>Download: <ulink url="&patches-root;&binutils-build-patch;"/></para>
|
||||
<para>MD5 sum: <literal>&binutils-build-patch-md5;</literal></para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>Bzip2 Documentation Patch - <token>&bzip2-docs-patch-size;</token>:</term>
|
||||
<listitem>
|
||||
|
@ -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 \
|
||||
|
@ -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/" \
|
||||
|
@ -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>
|
||||
|
||||
|
@ -7,6 +7,11 @@
|
||||
<!ENTITY bash-fixes-patch-size "24 KB">
|
||||
|
||||
|
||||
<!ENTITY binutils-build-patch "binutils-&binutils-version;-build_fix-1.patch">
|
||||
<!ENTITY binutils-build-patch-md5 "ddc5a9a170ed6ba23b8eb7d808e609ee">
|
||||
<!ENTITY binutils-build-patch-size "1.4 KB">
|
||||
|
||||
|
||||
<!ENTITY bzip2-docs-patch "bzip2-&bzip2-version;-install_docs-1.patch">
|
||||
<!ENTITY bzip2-docs-patch-md5 "6a5ac7e89b791aae556de0f745916f7f">
|
||||
<!ENTITY bzip2-docs-patch-size "1.6 KB">
|
||||
|
Loading…
Reference in New Issue
Block a user