Author: jhuntwork
Date: 2007-08-08 13:48:21 -0600 (Wed, 08 Aug 2007)
New Revision: 8305
Modified:
branches/jh/BOOK/chapter01/changelog.xml
branches/jh/BOOK/chapter05/glibc.xml
branches/jh/BOOK/chapter06/glibc.xml
Log:
Add -march=i486 to Glibc for x86 builds as default of i386 is incompatible.
Modified: branches/jh/BOOK/chapter01/changelog.xml
===================================================================
--- branches/jh/BOOK/chapter01/changelog.xml 2007-08-08 18:51:03 UTC (rev
8304)
+++ branches/jh/BOOK/chapter01/changelog.xml 2007-08-08 19:48:21 UTC (rev
8305)
@@ -40,6 +40,10 @@
<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>
</listitem>
Modified: branches/jh/BOOK/chapter05/glibc.xml
===================================================================
--- branches/jh/BOOK/chapter05/glibc.xml 2007-08-08 18:51:03 UTC (rev
8304)
+++ branches/jh/BOOK/chapter05/glibc.xml 2007-08-08 19:48:21 UTC (rev
8305)
@@ -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) &&
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 \
Modified: branches/jh/BOOK/chapter06/glibc.xml
===================================================================
--- branches/jh/BOOK/chapter06/glibc.xml 2007-08-08 18:51:03 UTC (rev
8304)
+++ branches/jh/BOOK/chapter06/glibc.xml 2007-08-08 19:48:21 UTC (rev
8305)
@@ -98,9 +98,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) &&
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>
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page