Changeset 4759793f for chapter05/gcc-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/gcc-pass1.xml
ra6be895 r4759793f 44 44 cd ../gcc-build</userinput></screen> 45 45 46 <para>Test to see if the host is a multilib capable machine and set a variable 47 if it is. This ensures that only 64-bit binaries are built if using such a host. 48 Also, the --with-arch flag is only necessary for x86 machines.</para> 46 <para>Set the --with-arch flag if the machine is x86:</para> 49 47 50 <screen><userinput>case $(uname -m) in 51 i?86) WITHARCH="--with-arch=i486" ;; 52 x86_64) M64="-m64" ;; 53 esac</userinput></screen> 48 <screen><userinput>test $(uname -m | grep i?86) && WITHARCH="--with-arch=i486"</userinput></screen> 54 49 55 50 <para>Prepare GCC for compilation:</para> 56 51 57 <screen><userinput>CC="gcc -B/usr/bin/ $M64" ../gcc-&gcc-version;/configure --prefix=/tools \52 <screen><userinput>CC="gcc -B/usr/bin/" ../gcc-&gcc-version;/configure --prefix=/tools \ 58 53 --with-local-prefix=/tools --disable-nls --disable-shared \ 59 54 --enable-languages=c --disable-multilib \ 60 55 $WITHARCH 61 unset M64WITHARCH</userinput></screen>56 unset WITHARCH</userinput></screen> 62 57 63 58 <variablelist>
Note:
See TracChangeset
for help on using the changeset viewer.