Changes in chapter08/gcc.xml [1b11115:3a72ffa]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/gcc.xml
r1b11115 r3a72ffa 50 50 -i libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cpp</userinput></screen> 51 51 --> 52 <para>First fix a problem with the latest version of glibc:</para>53 54 <screen><userinput remap="pre">patch -Np1 -i ../&gcc-upstream-fixes-patch;</userinput></screen>55 56 52 <para>If building on x86_64, change the default directory name for 64-bit 57 53 libraries to <quote>lib</quote>:</para> 58 54 59 <screen ><userinput remap="pre">case $(uname -m) in55 <screen arch="default"><userinput remap="pre">case $(uname -m) in 60 56 x86_64) 61 57 sed -e '/m64=/s/lib64/lib/' \ … … 64 60 esac</userinput></screen> 65 61 62 <para arch="ml_32,ml_x32,ml_all">Change the default directory name for 64-bit 63 libraries to <quote>lib</quote>:</para> 64 65 <screen arch="ml_32,ml_x32,ml_all"><userinput remap="pre">sed -e '/m64=/s/lib64/lib/' \ 66 -e '/m32=/s/m32=.*/m32=..\/lib32$(call if_multiarch,:i386-linux-gnu)/' \ 67 -i.orig gcc/config/i386/t-linux64</userinput></screen> 68 66 69 <para>The GCC documentation recommends building GCC in a dedicated build directory:</para> 67 70 … … 71 74 <para>Prepare GCC for compilation:</para> 72 75 73 <screen ><userinput remap="configure">../configure --prefix=/usr \76 <screen arch="default"><userinput remap="configure">../configure --prefix=/usr \ 74 77 LD=ld \ 75 78 --enable-languages=c,c++ \ 76 79 --disable-multilib \ 77 80 --disable-bootstrap \ 81 --with-system-zlib</userinput></screen> 82 <screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure" 83 arch="ml_32" >mlist=m64,m32</userinput><userinput remap="configure" 84 arch="ml_x32">mlist=m64,mx32</userinput><userinput remap="configure" 85 arch="ml_all">mlist=m64,m32,mx32</userinput> 86 <userinput remap="configure">../configure --prefix=/usr \ 87 LD=ld \ 88 --enable-languages=c,c++ \ 89 --enable-multilib \ 90 --with-multilib-list=$mlist \ 91 --disable-bootstrap \ 78 92 --with-system-zlib</userinput></screen> 79 93 … … 247 261 SEARCH_DIR("/usr/lib");</computeroutput></screen> 248 262 249 <para >A 32-bit system may see a few different directories. For example, here263 <para arch="default">A 32-bit system may see a few different directories. For example, here 250 264 is the output from an i686 machine:</para> 251 265 252 <screen><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32") 266 <!-- not using entities here as the dir names has nothing to do with multilib --> 267 <screen arch="default"><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32") 253 268 SEARCH_DIR("/usr/local/lib32") 254 269 SEARCH_DIR("/lib32")
Note:
See TracChangeset
for help on using the changeset viewer.