Add optimization (-O3 and -pipe) to glibc in Chapter 6

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8885 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Bruce Dubbs 2009-05-17 17:18:36 +00:00
parent f2705730ee
commit 7a28184977
3 changed files with 18 additions and 4 deletions

View File

@ -37,6 +37,18 @@
-->
<listitem>
<para>2009-05-17</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Add optimization (-O3 and -pipe) to
glibc in Chapter 6.
Fixes
<ulink url="&lfs-ticket-root;2299">#2299</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2009-05-16</para>
<itemizedlist>

View File

@ -109,10 +109,12 @@ unset DL</userinput></screen>
<screen><userinput remap="pre">mkdir -v ../glibc-build
cd ../glibc-build</userinput></screen>
<para>Again, add the needed compiler flags to CFLAGS for x86 machines:</para>
<para>As in Chapter 5, add the needed compiler flags to CFLAGS for x86 machines.
Here, the optimization of the library is also set for the gcc compiler to
enhance compilation speed (-pipe) and package performance (-O3).</para>
<screen><userinput remap="configure">case `uname -m` in
i?86) echo "CFLAGS += -march=i486 -mtune=native" &gt; configparms ;;
i?86) echo "CFLAGS += -march=i486 -mtune=native -O3 -pipe" &gt; configparms ;;
esac</userinput></screen>
<para>Prepare Glibc for compilation:</para>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!ENTITY version "SVN-20090516">
<!ENTITY releasedate "May 16, 2009">
<!ENTITY version "SVN-20090517">
<!ENTITY releasedate "May 17, 2009">
<!ENTITY copyrightdate "1999-2009"><!-- jhalfs needs a literal dash, not &ndash; -->
<!ENTITY milestone "6.5">
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->