Changes in chapter08/gcc.xml [f36db31:9da9d014]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/gcc.xml
rf36db31 r9da9d014 42 42 <title>Installation of GCC</title> 43 43 44 <para >If building on x86_64, change the default directory name for 64-bit44 <para arch="default">If building on x86_64, change the default directory name for 64-bit 45 45 libraries to <quote>lib</quote>:</para> 46 46 47 <screen ><userinput remap="pre">case $(uname -m) in47 <screen arch="default"><userinput remap="pre">case $(uname -m) in 48 48 x86_64) 49 49 sed -e '/m64=/s/lib64/lib/' \ … … 52 52 esac</userinput></screen> 53 53 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=..\&lib-m32;$(call if_multiarch,:i386-linux-gnu)/' \ 59 -i.orig gcc/config/i386/t-linux64</userinput></screen> 60 54 61 <para>The GCC documentation recommends building GCC in a dedicated build directory:</para> 55 62 … … 59 66 <para>Prepare GCC for compilation:</para> 60 67 61 <screen ><userinput remap="configure">../configure --prefix=/usr \68 <screen arch="default"><userinput remap="configure">../configure --prefix=/usr \ 62 69 LD=ld \ 63 70 --enable-languages=c,c++ \ 64 71 --disable-multilib \ 65 72 --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 \ 66 84 --with-system-zlib</userinput></screen> 67 85 … … 257 275 SEARCH_DIR("/usr/lib");</computeroutput></screen> 258 276 259 <para >A 32-bit system may see a few different directories. For example, here277 <para arch="default">A 32-bit system may see a few different directories. For example, here 260 278 is the output from an i686 machine:</para> 261 279 262 <screen><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32") 280 <!-- not using entities here as the dir names has nothing to do with multilib --> 281 <screen arch="default"><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32") 263 282 SEARCH_DIR("/usr/local/lib32") 264 283 SEARCH_DIR("/lib32")
Note:
See TracChangeset
for help on using the changeset viewer.