- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/gcc.xml
r24b004c r686839b 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>sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in</userinput></screen> 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> 37 45 38 46 <para os="f">The GCC documentation recommends building GCC outside of the source … … 44 52 <para os="h">Prepare GCC for compilation:</para> 45 53 46 <screen os="i"><userinput> SED=sedCC="gcc -isystem /usr/include" \54 <screen os="i"><userinput>CC="gcc -isystem /usr/include" \ 47 55 CXX="g++ -isystem /usr/include" \ 48 56 LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" \ … … 52 60 --enable-clocale=gnu --enable-languages=c,c++ \ 53 61 --disable-multilib --disable-libstdcxx-pch \ 54 --with-system-zlib --enable-checking=release --enable-libstdcxx-time</userinput></screen> 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> 55 65 56 66 <para os="j">Compile the package:</para> … … 89 99 <screen os="t"><userinput>make install</userinput></screen> 90 100 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 101 <para os="u">Some packages expect the C preprocessor to be installed in the 97 102 <filename class="directory">/lib</filename> directory. 98 103 To support those packages, create this symlink:</para> 99 104 100 <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 C105 <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 C 103 108 compiler. To satisfy those packages, create a symlink:</para> 104 109 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>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> 110 115 111 116 </sect2> … … 121 126 <seglistitem> 122 127 <seg>c++, cc (link to gcc), cpp, g++, gcc, and gcov</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> 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> 127 131 <seg>/usr/include/c++, /usr/lib/gcc, /usr/share/gcc-&gcc-version;</seg> 128 132 </seglistitem> … … 206 210 </varlistentry> 207 211 208 <varlistentry id="libatomic">209 <term><filename class="libraryfile">libatomic</filename></term>210 <listitem>211 <para>A GCC support runtime library for atomic operations not212 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 219 212 <varlistentry id="libgcc"> 220 213 <term><filename class="libraryfile">libgcc</filename></term> … … 249 242 </varlistentry> 250 243 251 <varlistentry id="libiberty">252 <term><filename class="libraryfile">libiberty</filename></term>253 <listitem>254 <para>Contains routines used by various GNU programs, including255 <command>getopt</command>, <command>obstack</command>,256 <command>strerror</command>, <command>strtol</command>, and257 <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 provides268 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 285 244 <varlistentry id="libmudflap"> 286 245 <term><filename class="libraryfile">libmudflap</filename></term> … … 294 253 </varlistentry> 295 254 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 306 255 <varlistentry id="libssp"> 307 256 <term><filename class="libraryfile">libssp</filename></term>
Note:
See TracChangeset
for help on using the changeset viewer.