Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/gcc-pass1.xml

    r43b6ecd r0ebda11  
    6161mv -v gmp-&gmp-version; gmp
    6262tar -xf ../mpc-&mpc-version;.tar.gz
    63 mv -v mpc-&mpc-version; mpc</userinput></screen>
    64 
    65     <para>On x86_64 hosts, set the default directory name for
     63mv -v mpc-&mpc-version; mpc</userinput>
     64<userinput remap="pre" arch="ml_32,ml_x32,ml_all">tar -xf ../isl-&isl-version;.tar.xz
     65mv -v isl-&isl-version; isl</userinput></screen>
     66
     67    <para arch="default">On x86_64 hosts, set the default directory name for
    6668    64-bit libraries to <quote>lib</quote>:</para>
    6769
    68 <screen><userinput remap="pre">case $(uname -m) in
     70<screen arch="default"><userinput remap="pre">case $(uname -m) in
    6971  x86_64)
    7072    sed -e '/m64=/s/lib64/lib/' \
     
    7375esac</userinput></screen>
    7476
    75     <para>The GCC documentation recommends building GCC
     77    <para arch="ml_32,ml_x32,ml_all">Change the default directory name for
     78    libraries:</para>
     79
     80<screen arch="ml_32,ml_x32,ml_all"><userinput remap="pre">sed -e '/m64=/s/lib64/lib/' \
     81    -e '/m32=/s/m32=.*/m32=..\/lib32$(call if_multiarch,:i386-linux-gnu)/' \
     82    -i.orig gcc/config/i386/t-linux64
     83</userinput></screen>
     84
     85    <para>The GCC documentation recommends building GCC
    7686    in a dedicated build directory:</para>
    7787
     
    8191    <para>Prepare GCC for compilation:</para>
    8292
    83 <screen><userinput remap="configure">../configure                  \
    84     --target=$LFS_TGT         \
    85     --prefix=$LFS/tools       \
    86     --with-glibc-version=2.11 \
    87     --with-sysroot=$LFS       \
    88     --with-newlib             \
    89     --without-headers         \
    90     --enable-initfini-array   \
    91     --disable-nls             \
    92     --disable-shared          \
    93     --disable-multilib        \
    94     --disable-decimal-float   \
    95     --disable-threads         \
    96     --disable-libatomic       \
    97     --disable-libgomp         \
    98     --disable-libquadmath     \
    99     --disable-libssp          \
    100     --disable-libvtv          \
    101     --disable-libstdcxx       \
     93<screen arch="default"><userinput remap="configure">../configure                                       \
     94    --target=$LFS_TGT                              \
     95    --prefix=$LFS/tools                            \
     96    --with-glibc-version=2.11                      \
     97    --with-sysroot=$LFS                            \
     98    --with-newlib                                  \
     99    --without-headers                              \
     100    --enable-initfini-array                        \
     101    --disable-nls                                  \
     102    --disable-shared                               \
     103    --disable-multilib                             \
     104    --disable-decimal-float                        \
     105    --disable-threads                              \
     106    --disable-libatomic                            \
     107    --disable-libgomp                              \
     108    --disable-libquadmath                          \
     109    --disable-libssp                               \
     110    --disable-libvtv                               \
     111    --disable-libstdcxx                            \
    102112    --enable-languages=c,c++</userinput></screen>
     113<screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure"
     114    arch="ml_32">mlist=m64,m32</userinput><userinput remap="configure"
     115    arch="ml_x32">mlist=m64,mx32</userinput><userinput remap="configure"
     116    arch="ml_all">mlist=m64,m32,mx32</userinput>
     117<userinput remap="configure">../configure                                       \
     118    --target=$LFS_TGT                              \
     119    --prefix=$LFS/tools                            \
     120    --with-glibc-version=2.11                      \
     121    --with-sysroot=$LFS                            \
     122    --with-newlib                                  \
     123    --without-headers                              \
     124    --enable-initfini-array                        \
     125    --disable-nls                                  \
     126    --disable-shared                               \
     127    --enable-multilib --with-multilib-list=$mlist  \
     128    --disable-decimal-float                        \
     129    --disable-threads                              \
     130    --disable-libatomic                            \
     131    --disable-libgomp                              \
     132    --disable-libquadmath                          \
     133    --disable-libssp                               \
     134    --disable-libvtv                               \
     135    --disable-libstdcxx                            \
     136    --enable-languages=c,c++</userinput></screen>
     137
    103138    <variablelist>
    104139      <title>The meaning of the configure options:</title>
     
    108143        <listitem>
    109144          <para>This option ensures the package will be compatible with the host's
    110           version of glibc.  It is set to the minimum glibc requirement
     145          version of glibc.  It is set to the minimum glibc requirement 
    111146          specified in the <xref linkend="ch-partitioning-hostreqs"/>.</para>
    112147        </listitem>
     
    150185      </varlistentry>
    151186
    152       <varlistentry>
     187      <varlistentry arch="default">
    153188        <term><parameter>--disable-multilib</parameter></term>
    154189        <listitem>
     
    157192        </listitem>
    158193      </varlistentry>
     194      <varlistentry arch="ml_32,ml_x32,ml_all">
     195        <term><parameter>--enable-multilib --with-multilib-list=...</parameter></term>
     196        <listitem>
     197          <para>LFS canbe used to support multilib. Which they are is
     198          specified in the multilib list.</para>
     199        </listitem>
     200      </varlistentry>
    159201
    160202      <varlistentry>
    161203        <term><parameter>--disable-decimal-float, --disable-threads,
    162               --disable-libatomic, --disable-libgomp,
     204              --disable-libatomic, --disable-libgomp, 
    163205        --disable-libquadmath, --disable-libssp, --disable-libvtv,
    164206        --disable-libstdcxx</parameter></term>
Note: See TracChangeset for help on using the changeset viewer.