Changes in chapter08/gcc.xml [0ebda11:d7a9421]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/gcc.xml
r0ebda11 rd7a9421 42 42 <title>Installation of GCC</title> 43 43 44 <para arch="default">If building on x86_64, change the default directory name for 64-bit44 <para>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 arch="default"><userinput remap="pre">case $(uname -m) in47 <screen><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-bit55 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 61 54 <para>The GCC documentation recommends building GCC in a dedicated build directory:</para> 62 55 … … 66 59 <para>Prepare GCC for compilation:</para> 67 60 68 <screen arch="default"><userinput remap="configure">../configure --prefix=/usr \61 <screen><userinput remap="configure">../configure --prefix=/usr \ 69 62 LD=ld \ 70 63 --enable-languages=c,c++ \ 71 64 --disable-multilib \ 72 65 --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 \84 66 --with-system-zlib</userinput></screen> 85 67 … … 278 260 SEARCH_DIR("/usr/lib");</computeroutput></screen> 279 261 280 <para arch="default">A 32-bit system may see a few different directories. For example, here262 <para>A 32-bit system may see a few different directories. For example, here 281 263 is the output from an i686 machine:</para> 282 264 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") 265 <screen><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32") 285 266 SEARCH_DIR("/usr/local/lib32") 286 267 SEARCH_DIR("/lib32")
Note:
See TracChangeset
for help on using the changeset viewer.