Explorar o código

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
Bruce Dubbs %!s(int64=16) %!d(string=hai) anos
pai
achega
7a28184977
Modificáronse 3 ficheiros con 18 adicións e 4 borrados
  1. 12 0
      chapter01/changelog.xml
  2. 4 2
      chapter06/glibc.xml
  3. 2 2
      general.ent

+ 12 - 0
chapter01/changelog.xml

@@ -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>

+ 4 - 2
chapter06/glibc.xml

@@ -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>

+ 2 - 2
general.ent

@@ -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}]" -->