Changeset ede9b9b for chapter05/gcc-pass1.xml
- Timestamp:
- 02/25/2004 10:04:14 PM (20 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- dd3e8c6
- Parents:
- e421d2e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/gcc-pass1.xml
re421d2e rede9b9b 16 16 <title>Installation of GCC</title> 17 17 18 <para>Unpack only the GCC-core tarball, as we won't be needing aC++ compiler19 forthe moment.</para>18 <para>Unpack only the GCC-core tarball, as we won't be needing the C++ compiler 19 nor the test suite at the moment.</para> 20 20 21 <para>This package is known to behave badly when you have changed its22 default optimization flags (including the -march and -mcpu options). 23 Therefore, if you have defined any environment variables that override 24 default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting 25 or modifying them when building GCC.</para>21 <para>This package is known to behave badly when you change its default 22 optimization flags (including the <emphasis>-march</emphasis> and 23 <emphasis>-mcpu</emphasis> options). Therefore, if you have defined any 24 environment variables that override default optimizations, such as CFLAGS and 25 CXXFLAGS, we recommend unsetting them when building GCC.</para> 26 26 27 27 <para>The GCC documentation recommends building GCC outside of the source … … 53 53 script for Glibc (the next package we compile) produces the proper results. 54 54 Note that the <command>gcc</command> binaries will still be linked 55 statically, as this is controlled by the < command>-static</command>56 value of BOOT_LDFLAGS further on.</para></listitem>55 statically, as this is controlled by the <emphasis>-static</emphasis> 56 value of BOOT_LDFLAGS in the next step.</para></listitem> 57 57 58 58 <listitem><para><userinput>--enable-languages=c</userinput>: This option … … 79 79 </itemizedlist> 80 80 81 <para>Compilation is now complete. This is the point where we would normally 82 run the test suite. But as discussed earlier, we don't recommend running the 83 test suites for the temporary tools here in this chapter. However, even if we 84 still wanted to run the GCC test suite, we're unable do so at this early stage 85 because the test suite framework is not yet in place. Not only that, the 86 programs from this first pass will soon be overwritten by those installed in 87 the second pass.</para> 81 <para>Compilation is now complete, and at this point we would normally run the 82 test suite. But, as mentioned before, the test suite framework is not in place 83 yet. And there would be little point in running the tests anyhow, since the 84 programs from this first pass will soon be replaced.</para> 88 85 89 86 <para>And install the package:</para> … … 91 88 <screen><userinput>make install</userinput></screen> 92 89 93 <para>As a finishing touch we'll create the <filename 94 class="symlink">/tools/bin/cc</filename> symlink. Many programs and 95 scripts run <command>cc</command> instead of <command>gcc</command>, 90 <para>As a finishing touch we'll create a symlink. Many programs and scripts 91 run <command>cc</command> instead of <command>gcc</command>, 96 92 a thing meant to keep programs generic and therefore usable on all kinds of 97 93 Unix systems. Not everybody has the GNU C compiler installed. Simply running
Note:
See TracChangeset
for help on using the changeset viewer.