- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/gcc.xml
r686839b r24b004c 26 26 <title>Installation of GCC</title> 27 27 28 <para os="p1">The following patch contains a number of updates to the 28 <para os="p1">The following patch contains a number of updates to the 29 29 &gcc-version; branch by the GCC developers:</para> 30 30 … … 34 34 suppress the execution of the <command>fixincludes</command> script:</para> 35 35 36 <screen os="fix2"><userinput>cp -v gcc/Makefile.in{,.orig} 37 sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.in</userinput></screen> 38 39 <para os="d">Apply a <command>sed</command> substitution that will suppress the 40 installation of <filename class="libraryfile">libiberty.a</filename>. The 41 version of <filename class="libraryfile">libiberty.a</filename> provided by 42 Binutils will be used instead:</para> 43 44 <screen os="e"><userinput>sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen> 36 <screen os="fix2"><userinput>sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in</userinput></screen> 45 37 46 38 <para os="f">The GCC documentation recommends building GCC outside of the source … … 52 44 <para os="h">Prepare GCC for compilation:</para> 53 45 54 <screen os="i"><userinput> CC="gcc -isystem /usr/include" \46 <screen os="i"><userinput>SED=sed CC="gcc -isystem /usr/include" \ 55 47 CXX="g++ -isystem /usr/include" \ 56 48 LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" \ … … 60 52 --enable-clocale=gnu --enable-languages=c,c++ \ 61 53 --disable-multilib --disable-libstdcxx-pch \ 62 --enable-cloog-backend=isl --disable-isl-version-check --with-system-zlib \ 63 --enable-checking=release --enable-libstdcxx-time \ 64 --disable-install-libiberty</userinput></screen> 54 --with-system-zlib --enable-checking=release --enable-libstdcxx-time</userinput></screen> 65 55 66 56 <para os="j">Compile the package:</para> … … 99 89 <screen os="t"><userinput>make install</userinput></screen> 100 90 101 <para os="u">Some packages expect the C preprocessor to be installed in the 91 <para os="u">Install the <filename class="headerfile">libiberty</filename> header 92 file that is needed by some packages:</para> 93 94 <screen os="v"><userinput>cp -v ../gcc-&gcc-version;/include/libiberty.h /usr/include</userinput></screen> 95 96 <para os="w">Some packages expect the C preprocessor to be installed in the 102 97 <filename class="directory">/lib</filename> directory. 103 98 To support those packages, create this symlink:</para> 104 99 105 <screen os=" v"><userinput>ln -sv ../usr/bin/cpp /lib</userinput></screen>106 107 <para os=" w">Many packages use the name <command>cc</command> to call the C100 <screen os="x"><userinput>ln -sv ../usr/bin/cpp /lib</userinput></screen> 101 102 <para os="y">Many packages use the name <command>cc</command> to call the C 108 103 compiler. To satisfy those packages, create a symlink:</para> 109 104 110 <screen os=" x"><userinput>ln -sv gcc /usr/bin/cc</userinput></screen>111 112 <para os=" y">Finally, move a misplaced file:</para>113 114 <screen os=" z"><userinput>mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib</userinput></screen>105 <screen os="z"><userinput>ln -sv gcc /usr/bin/cc</userinput></screen> 106 107 <para os="aa">Finally, move a misplaced file:</para> 108 109 <screen os="ab"><userinput>mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib</userinput></screen> 115 110 116 111 </sect2> … … 126 121 <seglistitem> 127 122 <seg>c++, cc (link to gcc), cpp, g++, gcc, and gcov</seg> 128 <seg>libasan.[a,so], libgcc.a, libgcc_eh.a, libgcc_s.so, libgcov.a, 129 libgomp.[a,so], libmudflap.[a,so], libmudflapth.[a,so], libssp.[a,so], 130 libssp_nonshared.a, libstdc++.[a,so], libsupc++.a, and libtsan.[a,so]</seg> 123 <seg>libasan.[a,so], libatomic.[a,so], libgcc.a, libgcc_eh.a, libgcc_s.so, libgcov.a, 124 libgomp.[a,so], libiberty.a, libitm.[a,so], liblto_plugin.so, libmudflap.[a,so], libmudflapth.[a,so], 125 libquadmath.[a,so], libssp.[a,so], libssp_nonshared.a, libstdc++.[a,so], libsupc++.a, and 126 libtsan.[a,so]</seg> 131 127 <seg>/usr/include/c++, /usr/lib/gcc, /usr/share/gcc-&gcc-version;</seg> 132 128 </seglistitem> … … 210 206 </varlistentry> 211 207 208 <varlistentry id="libatomic"> 209 <term><filename class="libraryfile">libatomic</filename></term> 210 <listitem> 211 <para>A GCC support runtime library for atomic operations not 212 supported by hardware</para> 213 <indexterm zone="ch-system-gcc libatomic"> 214 <primary sortas="c-libatomic*">libatomic*</primary> 215 </indexterm> 216 </listitem> 217 </varlistentry> 218 212 219 <varlistentry id="libgcc"> 213 220 <term><filename class="libraryfile">libgcc</filename></term> … … 242 249 </varlistentry> 243 250 251 <varlistentry id="libiberty"> 252 <term><filename class="libraryfile">libiberty</filename></term> 253 <listitem> 254 <para>Contains routines used by various GNU programs, including 255 <command>getopt</command>, <command>obstack</command>, 256 <command>strerror</command>, <command>strtol</command>, and 257 <command>strtoul</command></para> 258 <indexterm zone="ch-system-gcc libiberty"> 259 <primary sortas="c-libiberty">libiberty</primary> 260 </indexterm> 261 </listitem> 262 </varlistentry> 263 264 <varlistentry id="libitm"> 265 <term><filename class="libraryfile">libitm</filename></term> 266 <listitem> 267 <para>The GNU Transactional Memory Library, which provides 268 transaction support for accesses to a process's memory</para> 269 <indexterm zone="ch-system-gcc libitm"> 270 <primary sortas="c-libitm*">libitm*</primary> 271 </indexterm> 272 </listitem> 273 </varlistentry> 274 275 <varlistentry id="liblto_plugin"> 276 <term><filename class="libraryfile">liblto_plugin</filename></term> 277 <listitem> 278 <para>Runtime library for GCC's link-time optimization plugin</para> 279 <indexterm zone="ch-system-gcc liblto_plugin"> 280 <primary sortas="c-liblto_plugin">liblto_plugin</primary> 281 </indexterm> 282 </listitem> 283 </varlistentry> 284 244 285 <varlistentry id="libmudflap"> 245 286 <term><filename class="libraryfile">libmudflap</filename></term> … … 253 294 </varlistentry> 254 295 296 <varlistentry id="libquadmath"> 297 <term><filename class="libraryfile">libquadmath</filename></term> 298 <listitem> 299 <para>The GCC Quad-Precision Math Libarary API</para> 300 <indexterm zone="ch-system-gcc libquadmath"> 301 <primary sortas="c-libquadmath*">libquadmath*</primary> 302 </indexterm> 303 </listitem> 304 </varlistentry> 305 255 306 <varlistentry id="libssp"> 256 307 <term><filename class="libraryfile">libssp</filename></term>
Note:
See TracChangeset
for help on using the changeset viewer.