Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/gcc-pass1.xml

    r0ebda11 r43b6ecd  
    6161mv -v gmp-&gmp-version; gmp
    6262tar -xf ../mpc-&mpc-version;.tar.gz
    63 mv -v mpc-&mpc-version; mpc</userinput>
    64 <userinput remap="pre" arch="ml_32,ml_x32,ml_all">tar -xf ../isl-&isl-version;.tar.xz
    65 mv -v isl-&isl-version; isl</userinput></screen>
    66 
    67     <para arch="default">On x86_64 hosts, set the default directory name for
     63mv -v mpc-&mpc-version; mpc</userinput></screen>
     64
     65    <para>On x86_64 hosts, set the default directory name for
    6866    64-bit libraries to <quote>lib</quote>:</para>
    6967
    70 <screen arch="default"><userinput remap="pre">case $(uname -m) in
     68<screen><userinput remap="pre">case $(uname -m) in
    7169  x86_64)
    7270    sed -e '/m64=/s/lib64/lib/' \
     
    7573esac</userinput></screen>
    7674
    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
     75    <para>The GCC documentation recommends building GCC
    8676    in a dedicated build directory:</para>
    8777
     
    9181    <para>Prepare GCC for compilation:</para>
    9282
    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                            \
     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       \
    112102    --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 
    138103    <variablelist>
    139104      <title>The meaning of the configure options:</title>
     
    143108        <listitem>
    144109          <para>This option ensures the package will be compatible with the host's
    145           version of glibc.  It is set to the minimum glibc requirement 
     110          version of glibc.  It is set to the minimum glibc requirement
    146111          specified in the <xref linkend="ch-partitioning-hostreqs"/>.</para>
    147112        </listitem>
     
    185150      </varlistentry>
    186151
    187       <varlistentry arch="default">
     152      <varlistentry>
    188153        <term><parameter>--disable-multilib</parameter></term>
    189154        <listitem>
     
    192157        </listitem>
    193158      </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>
    201159
    202160      <varlistentry>
    203161        <term><parameter>--disable-decimal-float, --disable-threads,
    204               --disable-libatomic, --disable-libgomp, 
     162              --disable-libatomic, --disable-libgomp,
    205163        --disable-libquadmath, --disable-libssp, --disable-libvtv,
    206164        --disable-libstdcxx</parameter></term>
Note: See TracChangeset for help on using the changeset viewer.