aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Huntwork <jhuntwork@linuxfromscratch.org>2007-09-01 03:11:54 +0000
committerJeremy Huntwork <jhuntwork@linuxfromscratch.org>2007-09-01 03:11:54 +0000
commita6be8954b8849b03358d0906174a693ce35127d2 (patch)
tree16911235d976cfacece32084a2aca4c848c66a21
parent944d1e4cbf09aeae3385a9a777188d98192dbb66 (diff)
Update the explanatory text for the use of '-m64'
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/jh/BOOK@8364 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter01/changelog.xml3
-rw-r--r--chapter05/binutils-pass1.xml17
2 files changed, 16 insertions, 4 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 5c341af96..702c546ea 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -40,6 +40,9 @@
<para>2007-08-31</para>
<itemizedlist>
<listitem>
+ <para>[jhuntwork] - Update explanatory text for the use of -m64.</para>
+ </listitem>
+ <listitem>
<para>[jhuntwork] - Update explanatory text for GCC's --with-arch parameter.</para>
</listitem>
<listitem>
diff --git a/chapter05/binutils-pass1.xml b/chapter05/binutils-pass1.xml
index c21f343f5..086566e73 100644
--- a/chapter05/binutils-pass1.xml
+++ b/chapter05/binutils-pass1.xml
@@ -57,9 +57,8 @@ cd ../binutils-build</userinput></screen>
&amp;&amp; make install; }</userinput>.</para>
</note>
- <para>Test to see if the host is a multilib capable machine and set a variable
- if it is. This ensures that only 64-bit binaries are built if using such a host.
- </para>
+ <para>Test to see if the host is a 64-bit capable machine and set a variable
+ if it is.</para>
<screen><userinput>test $(uname -m | grep 64) &amp;&amp; M64="-m64"</userinput></screen>
@@ -73,13 +72,23 @@ unset M64</userinput></screen>
<title>The meaning of the configure options:</title>
<varlistentry>
- <term><envar>CC="gcc -B/usr/bin/"</envar></term>
+ <term><envar>CC="gcc -B/usr/bin/ $M64"</envar></term>
<listitem>
<para>This forces <command>gcc</command> to prefer the linker from
the host in <filename class="directory">/usr/bin</filename>. This
is necessary on some hosts where the new <command>ld</command>
built here is not compatible with the host's <command>gcc</command>.
</para>
+ <para>Also, if the cpu-type is 64-bit capable, the variable <envar>$M64</envar>
+ will contain the parameter <parameter>-m64</parameter>. Otherwise, the
+ variable is empty. The parameter forces <command>gcc</command> to build
+ 64-bit binaries. Using that parameter here and for the next package
+ ensures creation of a linker, assembler and compiler that will in turn
+ create only 64-bit binaries. This is necessary since currently this book
+ does not support the creation of multilib systems, i.e., those with both
+ 32-bit and 64-bit libraries. This will only make a difference on hosts that
+ are themselves multilib and employ a compiler that creates 32-bit binaries
+ by default.</para>
</listitem>
</varlistentry>