Changeset 4759793f for chapter05/binutils-pass1.xml
- Timestamp:
- 09/03/2007 05:07:19 AM (17 years ago)
- Children:
- c11bcb7
- Parents:
- a6be895
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/binutils-pass1.xml
ra6be895 r4759793f 58 58 </note> 59 59 60 <para>Test to see if the host is a 64-bit capable machine and set a variable61 if it is.</para>62 63 <screen><userinput>test $(uname -m | grep 64) && M64="-m64"</userinput></screen>64 65 60 <para>Now prepare Binutils for compilation:</para> 66 61 67 <screen><userinput>CC="gcc -B/usr/bin/ $M64" ../binutils-&binutils-version;/configure \ 68 --prefix=/tools --disable-nls --disable-werror 69 unset M64</userinput></screen> 62 <screen><userinput>CC="gcc -B/usr/bin/" ../binutils-&binutils-version;/configure \ 63 --prefix=/tools --disable-nls --disable-werror</userinput></screen> 70 64 71 65 <variablelist> … … 73 67 74 68 <varlistentry> 75 <term><envar>CC="gcc -B/usr/bin/ $M64"</envar></term>69 <term><envar>CC="gcc -B/usr/bin/"</envar></term> 76 70 <listitem> 77 71 <para>This forces <command>gcc</command> to prefer the linker from … … 80 74 built here is not compatible with the host's <command>gcc</command>. 81 75 </para> 82 <para>Also, if the cpu-type is 64-bit capable, the variable <envar>$M64</envar>83 will contain the parameter <parameter>-m64</parameter>. Otherwise, the84 variable is empty. The parameter forces <command>gcc</command> to build85 64-bit binaries. Using that parameter here and for the next package86 ensures creation of a linker, assembler and compiler that will in turn87 create only 64-bit binaries. This is necessary since currently this book88 does not support the creation of multilib systems, i.e., those with both89 32-bit and 64-bit libraries. This will only make a difference on hosts that90 are themselves multilib and employ a compiler that creates 32-bit binaries91 by default.</para>92 76 </listitem> 93 77 </varlistentry>
Note:
See TracChangeset
for help on using the changeset viewer.