- Timestamp:
- 09/01/2007 03:11:54 AM (17 years ago)
- Children:
- 4759793f
- Parents:
- 944d1e4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/binutils-pass1.xml
r944d1e4 ra6be895 58 58 </note> 59 59 60 <para>Test to see if the host is a multilib capable machine and set a variable 61 if it is. This ensures that only 64-bit binaries are built if using such a host. 62 </para> 60 <para>Test to see if the host is a 64-bit capable machine and set a variable 61 if it is.</para> 63 62 64 63 <screen><userinput>test $(uname -m | grep 64) && M64="-m64"</userinput></screen> … … 74 73 75 74 <varlistentry> 76 <term><envar>CC="gcc -B/usr/bin/ "</envar></term>75 <term><envar>CC="gcc -B/usr/bin/ $M64"</envar></term> 77 76 <listitem> 78 77 <para>This forces <command>gcc</command> to prefer the linker from … … 81 80 built here is not compatible with the host's <command>gcc</command>. 82 81 </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, the 84 variable is empty. The parameter forces <command>gcc</command> to build 85 64-bit binaries. Using that parameter here and for the next package 86 ensures creation of a linker, assembler and compiler that will in turn 87 create only 64-bit binaries. This is necessary since currently this book 88 does not support the creation of multilib systems, i.e., those with both 89 32-bit and 64-bit libraries. This will only make a difference on hosts that 90 are themselves multilib and employ a compiler that creates 32-bit binaries 91 by default.</para> 83 92 </listitem> 84 93 </varlistentry>
Note:
See TracChangeset
for help on using the changeset viewer.