Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/gcc-pass1.xml

    r4ac095c7 r7152faa  
    4444    <title>Installation of Cross GCC</title>
    4545
    46     <!-- https://gcc.gnu.org/r14-4674 -->
    47     <para>At first, fix an issue producing illegal instructions in linked
    48     executables and shared libraries with GCC &gcc-version; and
    49     Binutils-2.42:</para>
    50 
    51     <screen><userinput remap='pre'>sed -e '/ASM_OUTPUT_ALIGN_WITH_NOP/,+1d' \
    52     -i gcc/config/loongarch/loongarch.h</userinput></screen>
    53 
    5446    <para>GCC requires the GMP, MPFR and MPC packages. As these packages may
    5547    not be included in your host distribution, they will be built with
     
    7163mv -v mpc-&mpc-version; mpc</userinput></screen>
    7264
    73     <para>Set the default directory name for
     65    <para>On x86_64 hosts, set the default directory name for
    7466    64-bit libraries to <quote>lib</quote>:</para>
    7567
    76 <screen><userinput remap="pre">sed -e 's/lib64/lib/' \
    77     -i.orig gcc/config/loongarch/{t-linux,linux.h}</userinput></screen>
     68<screen><userinput remap="pre">case $(uname -m) in
     69  x86_64)
     70    sed -e '/m64=/s/lib64/lib/' \
     71        -i.orig gcc/config/i386/t-linux64
     72 ;;
     73esac</userinput></screen>
    7874
    7975    <para>The GCC documentation recommends building GCC
     
    164160        <term><parameter>--disable-multilib</parameter></term>
    165161        <listitem>
    166           <para>On LoongArch, LFS does not support a multilib configuration.</para>
     162          <para>On x86_64, LFS does not support a multilib configuration.
     163          This switch is harmless for x86.</para>
    167164        </listitem>
    168165      </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.