Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/gcc.xml

    rd7a9421 r0ebda11  
    4242    <title>Installation of GCC</title>
    4343
    44     <para>If building on x86_64, change the default directory name for 64-bit
     44    <para arch="default">If building on x86_64, change the default directory name for 64-bit
    4545    libraries to <quote>lib</quote>:</para>
    4646
    47 <screen><userinput remap="pre">case $(uname -m) in
     47<screen arch="default"><userinput remap="pre">case $(uname -m) in
    4848  x86_64)
    4949    sed -e '/m64=/s/lib64/lib/' \
     
    5252esac</userinput></screen>
    5353
     54    <para arch="ml_32,ml_x32,ml_all">Change the default directory name for 64-bit
     55    libraries to <quote>lib</quote>:</para>
     56
     57<screen arch="ml_32,ml_x32,ml_all"><userinput remap="pre">sed -e '/m64=/s/lib64/lib/' \
     58    -e '/m32=/s/m32=.*/m32=..\/lib32$(call if_multiarch,:i386-linux-gnu)/' \
     59    -i.orig gcc/config/i386/t-linux64</userinput></screen>
     60
    5461    <para>The GCC documentation recommends building GCC in a dedicated build directory:</para>
    5562
     
    5966    <para>Prepare GCC for compilation:</para>
    6067
    61 <screen><userinput remap="configure">../configure --prefix=/usr            \
     68<screen arch="default"><userinput remap="configure">../configure --prefix=/usr            \
    6269             LD=ld                    \
    6370             --enable-languages=c,c++ \
    6471             --disable-multilib       \
    6572             --disable-bootstrap      \
     73             --with-system-zlib</userinput></screen>
     74<screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure"
     75  arch="ml_32" >mlist=m64,m32</userinput><userinput remap="configure"
     76  arch="ml_x32">mlist=m64,mx32</userinput><userinput remap="configure"
     77  arch="ml_all">mlist=m64,m32,mx32</userinput>
     78<userinput remap="configure">../configure --prefix=/usr               \
     79             LD=ld                       \
     80             --enable-languages=c,c++    \
     81             --enable-multilib           \
     82             --with-multilib-list=$mlist \
     83             --disable-bootstrap         \
    6684             --with-system-zlib</userinput></screen>
    6785
     
    260278SEARCH_DIR("/usr/lib");</computeroutput></screen>
    261279
    262    <para>A 32-bit system may see a few different directories. For example, here
     280   <para arch="default">A 32-bit system may see a few different directories. For example, here
    263281   is the output from an i686 machine:</para>
    264282
    265 <screen><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32")
     283<!-- not using entities here as the dir names has nothing to do with multilib -->
     284<screen arch="default"><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32")
    266285SEARCH_DIR("/usr/local/lib32")
    267286SEARCH_DIR("/lib32")
Note: See TracChangeset for help on using the changeset viewer.