Changeset b8dd57d6 for chapter05/gcc-pass1.xml
- Timestamp:
- 08/30/2007 05:34:55 PM (17 years ago)
- Children:
- f65c459
- Parents:
- 0d2c43f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/gcc-pass1.xml
r0d2c43f rb8dd57d6 44 44 cd ../gcc-build</userinput></screen> 45 45 46 <para>If our host is a multilib machine, we want to ensure that we 47 build 64-bit binaries, so we'll test for that and set a variable if so. 48 Also, the --with-arch flag is only necessary for x86 machines.</para> 49 50 <screen><userinput>case $(uname -m) in 51 x86) WITHARCH="--with-arch=i486" ;; 52 x86_64) M64="-m64" ;; 53 esac</userinput></screen> 54 46 55 <para>Prepare GCC for compilation:</para> 47 56 48 <screen><userinput>CC="gcc -B/usr/bin/ " ../gcc-&gcc-version;/configure --prefix=/tools \57 <screen><userinput>CC="gcc -B/usr/bin/ $M64" ../gcc-&gcc-version;/configure --prefix=/tools \ 49 58 --with-local-prefix=/tools --disable-nls --disable-shared \ 50 --enable-languages=c --disable-multilib --with-arch=i486</userinput></screen> 59 --enable-languages=c --disable-multilib \ 60 $WITHARCH 61 unset M64 WITHARCH</userinput></screen> 51 62 52 63 <variablelist> … … 110 121 <para>Continue with compiling the package:</para> 111 122 112 <screen><userinput>make bootstrap</userinput></screen> 113 114 <variablelist> 115 <title>The meaning of the make parameter:</title> 116 117 <varlistentry> 118 <term><parameter>bootstrap</parameter></term> 119 <listitem> 120 <para>This target does not just compile GCC, but compiles it 121 several times. It uses the programs compiled in a first round 122 to compile itself a second time, and then again a third time. 123 It then compares these second and third compiles to make sure 124 it can reproduce itself flawlessly. This also implies that it 125 was compiled correctly.</para> 126 </listitem> 127 </varlistentry> 128 129 </variablelist> 123 <screen><userinput>make</userinput></screen> 130 124 131 125 <para>Compilation is now complete. At this point, the test suite would
Note:
See TracChangeset
for help on using the changeset viewer.