Author: jhuntwork
Date: 2007-08-20 11:22:23 -0600 (Mon, 20 Aug 2007)
New Revision: 8330
Modified:
branches/jh/BOOK/chapter01/changelog.xml
branches/jh/BOOK/chapter05/gcc-pass1.xml
branches/jh/BOOK/chapter05/gcc-pass2.xml
branches/jh/BOOK/chapter05/glibc.xml
branches/jh/BOOK/chapter06/gcc.xml
branches/jh/BOOK/chapter06/glibc.xml
branches/jh/BOOK/general.ent
Log:
Use --with-arch on GCC instead of -march on Glibc
Modified: branches/jh/BOOK/chapter01/changelog.xml
===================================================================
--- branches/jh/BOOK/chapter01/changelog.xml 2007-08-20 16:44:55 UTC (rev
8329)
+++ branches/jh/BOOK/chapter01/changelog.xml 2007-08-20 17:22:23 UTC (rev
8330)
@@ -40,6 +40,9 @@
<para>2007-08-20</para>
<itemizedlist>
<listitem>
+ <para>[jhuntwork] - Use --with-arch=i486 on GCC instead of
-march=i486 with Glibc.</para>
+ </listitem>
+ <listitem>
<para>[bryan] - Fix typo in acknowledgements.</para>
</listitem>
</itemizedlist>
Modified: branches/jh/BOOK/chapter05/gcc-pass1.xml
===================================================================
--- branches/jh/BOOK/chapter05/gcc-pass1.xml 2007-08-20 16:44:55 UTC (rev
8329)
+++ branches/jh/BOOK/chapter05/gcc-pass1.xml 2007-08-20 17:22:23 UTC (rev
8330)
@@ -47,7 +47,7 @@
<screen><userinput>CC="gcc -B/usr/bin/" ../gcc-&gcc-version;/configure
--prefix=/tools \
--with-local-prefix=/tools --disable-nls --disable-shared \
- --enable-languages=c --disable-multilib</userinput></screen>
+ --enable-languages=c --disable-multilib
--with-arch=i486</userinput></screen>
<variablelist>
<title>The meaning of the configure options:</title>
@@ -96,6 +96,15 @@
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><parameter>--with-arch=i486</parameter></term>
+ <listitem>
+ <para>On x86 machines Glibc needs to be built for a minimum
architecture
+ of <quote>i486</quote>. Setting this for the GCC build ensures that
the
+ entire system is built consistently.</para>
+ </listitem>
+ </varlistentry>
+
</variablelist>
<para>Continue with compiling the package:</para>
Modified: branches/jh/BOOK/chapter05/gcc-pass2.xml
===================================================================
--- branches/jh/BOOK/chapter05/gcc-pass2.xml 2007-08-20 16:44:55 UTC (rev
8329)
+++ branches/jh/BOOK/chapter05/gcc-pass2.xml 2007-08-20 17:22:23 UTC (rev
8330)
@@ -140,7 +140,8 @@
--with-local-prefix=/tools --enable-clocale=gnu \
--enable-shared --enable-threads=posix \
--enable-__cxa_atexit --enable-languages=c,c++ \
- --disable-libstdcxx-pch --disable-multilib</userinput></screen>
+ --disable-libstdcxx-pch --disable-multilib \
+ --with-arch=i486</userinput></screen>
<variablelist>
<title>The meaning of the new configure options:</title>
Modified: branches/jh/BOOK/chapter05/glibc.xml
===================================================================
--- branches/jh/BOOK/chapter05/glibc.xml 2007-08-20 16:44:55 UTC (rev
8329)
+++ branches/jh/BOOK/chapter05/glibc.xml 2007-08-20 17:22:23 UTC (rev
8330)
@@ -43,15 +43,9 @@
<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>CC="gcc $MARCH" \
- ../glibc-&glibc-version;/configure --prefix=/tools \
+<screen><userinput>../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/gcc.xml
===================================================================
--- branches/jh/BOOK/chapter06/gcc.xml 2007-08-20 16:44:55 UTC (rev 8329)
+++ branches/jh/BOOK/chapter06/gcc.xml 2007-08-20 17:22:23 UTC (rev 8330)
@@ -78,7 +78,7 @@
--libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-clocale=gnu --enable-languages=c,c++ \
- --disable-multilib</userinput></screen>
+ --disable-multilib --with-arch=i486</userinput></screen>
<para>Compile the package:</para>
Modified: branches/jh/BOOK/chapter06/glibc.xml
===================================================================
--- branches/jh/BOOK/chapter06/glibc.xml 2007-08-20 16:44:55 UTC (rev
8329)
+++ branches/jh/BOOK/chapter06/glibc.xml 2007-08-20 17:22:23 UTC (rev
8330)
@@ -98,15 +98,9 @@
<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>CC="gcc $MARCH" \
- ../glibc-&glibc-version;/configure --prefix=/usr \
+<screen><userinput>../glibc-&glibc-version;/configure --prefix=/usr \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc</userinput></screen>
Modified: branches/jh/BOOK/general.ent
===================================================================
--- branches/jh/BOOK/general.ent 2007-08-20 16:44:55 UTC (rev 8329)
+++ branches/jh/BOOK/general.ent 2007-08-20 17:22:23 UTC (rev 8330)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
-<!ENTITY version "SVN-JH-20070813">
-<!ENTITY releasedate "August 13, 2007">
+<!ENTITY version "SVN-JH-20070820">
+<!ENTITY releasedate "August 20, 2007">
<!ENTITY milestone "7.0">
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or
"x.y[-pre{x}]" -->
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page