Changeset b3c46bf7 for chapter05/gcc-pass1.xml
- Timestamp:
- 08/28/2004 01:17:34 AM (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.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, 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:
- 9c14ec2
- Parents:
- 5e81f02
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/gcc-pass1.xml
r5e81f02 rb3c46bf7 45 45 <para>Prepare GCC for compilation:</para> 46 46 47 <screen><userinput>../gcc-&gcc-version;/configure --prefix=/tools \ 48 --libexecdir=/tools/lib --with-local-prefix=/tools \ 49 --disable-nls --enable-shared --enable-languages=c</userinput></screen> 47 <screen><userinput>CC="gcc -B/usr/bin" ../gcc-&gcc-version;/configure 48 --prefix=/tools --libexecdir=/tools/lib 49 --with-local-prefix=/tools --disable-nls 50 --enable-shared --enable-languages=c</userinput></screen> 50 51 51 52 <para>The meaning of the configure options:</para> 52 53 53 54 <variablelist> 55 <varlistentry> 56 <term><parameter>CC="gcc -B/usr/bin"</parameter></term> 57 <listitem><para>This parameter fixes a possible problem with building GCC 58 at this stage, first noticed in LFS 5.1.1. If our host uses a new version 59 of Binutils than we compiled, the host compiler may try use features not 60 supported by our new linker, causing compilation errors. By passing the -B 61 flag to gcc, we cause the compiler to temporarily use the host's linker, 62 which solves the problem.</para></listitem> 63 </varlistentry> 64 54 65 <varlistentry> 55 66 <term><parameter>--with-local-prefix=/tools</parameter></term>
Note:
See TracChangeset
for help on using the changeset viewer.