Ignore:
Timestamp:
08/28/2004 01:17:34 AM (20 years ago)
Author:
Jeremy Utley <jeremy@…>
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
Message:

Experimental change - Added -B/usr/bin to compiler flags for GCC Pass 1 - should result in a fix for the problem we encountered with LFS 5.1.1 building an older toolchain from a newer.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4058 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/gcc-pass1.xml

    r5e81f02 rb3c46bf7  
    4545<para>Prepare GCC for compilation:</para>
    4646
    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>
    5051
    5152<para>The meaning of the configure options:</para>
    5253
    5354<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
     58at this stage, first noticed in LFS 5.1.1.  If our host uses a new version
     59of Binutils than we compiled, the host compiler may try use features not
     60supported by our new linker, causing compilation errors.  By passing the -B
     61flag to gcc, we cause the compiler to temporarily use the host's linker,
     62which solves the problem.</para></listitem>
     63</varlistentry>
     64
    5465<varlistentry>
    5566<term><parameter>--with-local-prefix=/tools</parameter></term>
Note: See TracChangeset for help on using the changeset viewer.