Explorar o código

Add -march=i486 to Glibc for x86 builds as default of i386 is incompatible.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/jh/BOOK@8305 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Jeremy Huntwork %!s(int64=18) %!d(string=hai) anos
pai
achega
63add5662f
Modificáronse 3 ficheiros con 18 adicións e 2 borrados
  1. 4 0
      chapter01/changelog.xml
  2. 7 1
      chapter05/glibc.xml
  3. 7 1
      chapter06/glibc.xml

+ 4 - 0
chapter01/changelog.xml

@@ -39,6 +39,10 @@
     <listitem>
       <para>2007-08-08</para>
       <itemizedlist>
+	<listitem>
+	  <para>[jhuntwork] - Add -march=i486 to Glibc for x86 builds as default of i386 is
+          incompatible.</para>
+        </listitem>
 	<listitem>
 	  <para>[jhuntwork] - Make the sed to Glibc's test-installation.pl file
 	  architecture independent.</para>

+ 7 - 1
chapter05/glibc.xml

@@ -43,9 +43,15 @@
 <screen><userinput>mkdir -v ../glibc-build
 cd ../glibc-build</userinput></screen>
 
+    <para>On x86 machines Glibc needs to be built with the compliler
+    flag <quote>-march</quote> set to at least <quote>i486</quote>:</para>
+
+<screen><userinput>test $(uname -m | grep i[456]86) &amp;&amp; MARCH="-march=i486"</userinput></screen>
+
     <para>Next, prepare Glibc for compilation:</para>
 
-<screen><userinput>../glibc-&glibc-version;/configure --prefix=/tools \
+<screen><userinput>CC="gcc $MARCH" \
+    ../glibc-&glibc-version;/configure --prefix=/tools \
     --disable-profile --enable-add-ons \
     --enable-kernel=2.6.0 --with-binutils=/tools/bin \
     --without-gd --with-headers=/tools/include \

+ 7 - 1
chapter06/glibc.xml

@@ -98,9 +98,15 @@ unset DL</userinput></screen>
 <screen><userinput>mkdir -v ../glibc-build
 cd ../glibc-build</userinput></screen>
 
+    <para>On x86 machines Glibc needs to be built with the compliler
+    flag <quote>-march</quote> set to at least <quote>i486</quote>:</para>
+
+<screen><userinput>test $(uname -m | grep i[456]86) &amp;&amp; MARCH="-march=i486"</userinput></screen>
+
     <para>Prepare Glibc for compilation:</para>
 
-<screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
+<screen><userinput>CC="gcc $MARCH" \
+    ../glibc-&glibc-version;/configure --prefix=/usr \
     --disable-profile --enable-add-ons \
     --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc</userinput></screen>