Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/gcc-pass2.xml

    r0611f706 r1835fca  
    5959mv -v mpc-&mpc-version; mpc</userinput></screen>
    6060
    61     <para>If building on x86_64, change the default directory name for 64-bit
     61
     62    <para arch="default">If building on x86_64, change the default directory name for 64-bit
    6263    libraries to <quote>lib</quote>:</para>
    6364
    64 <screen><userinput remap="pre">case $(uname -m) in
     65<screen arch="default"><userinput remap="pre">case $(uname -m) in
    6566  x86_64)
    6667    sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64
     
    6869esac</userinput></screen>
    6970
     71    <para arch="ml_32,ml_x32,ml_all">Change the default directory name for the
     72    libraries:</para>
     73
     74<screen arch="ml_32,ml_x32,ml_all"><userinput remap="pre">sed -e '/m64=/s/lib64/lib/' \
     75    -e '/m32=/s/m32=.*/m32=..\/lib32$(call if_multiarch,:i386-linux-gnu)/' \
     76    -i.orig gcc/config/i386/t-linux64</userinput></screen>
     77
    7078    <para>Override the building rule of libgcc and libstdc++ headers, to
    7179    allow building these libraries with POSIX threads support:</para>
     
    8492    <para>Now prepare GCC for compilation:</para>
    8593
    86 <screen><userinput remap="configure">../configure                                       \
     94<screen arch="default"><userinput remap="configure">../configure                                       \
    8795    --build=$(../config.guess)                     \
    8896    --host=$LFS_TGT                                \
     
    102110    --disable-libvtv                               \
    103111    --enable-languages=c,c++</userinput></screen>
    104 
     112<screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure"
     113    arch="ml_32">mlist=m64,m32</userinput><userinput remap="configure"
     114    arch="ml_x32">mlist=m64,mx32</userinput><userinput remap="configure"
     115    arch="ml_all">mlist=m64,m32,mx32</userinput>
     116<userinput remap="configure">../configure                                       \
     117    --build=$(../config.guess)                     \
     118    --host=$LFS_TGT                                \
     119    --target=$LFS_TGT                              \
     120    LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc      \
     121    --prefix=/usr                                  \
     122    --with-build-sysroot=$LFS                      \
     123    --enable-default-pie                           \
     124    --enable-default-ssp                           \
     125    --enable-initfini-array                        \
     126    --disable-nls                                  \
     127    --enable-multilib --with-multilib-list=$mlist  \
     128    --disable-decimal-float                        \
     129    --disable-libatomic                            \
     130    --disable-libgomp                              \
     131    --disable-libquadmath                          \
     132    --disable-libssp                               \
     133    --disable-libvtv                               \
     134    --enable-languages=c,c++</userinput></screen>
     135<!--
     136    LDFLAGS_FOR_TARGET="-L$PWD/$LFS_TGT/libgcc -L$PWD/$LFS_TGT/32/libgcc -L$PWD/$LFS_TGT/x32/libgcc" \
     137-->
    105138    <variablelist>
    106139      <title>The meaning of the new configure options:</title><!-- WIP -->
Note: See TracChangeset for help on using the changeset viewer.