Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/gcc.xml

    r24b004c r686839b  
    2626    <title>Installation of GCC</title>
    2727
    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 
    2929    &gcc-version; branch by the GCC developers:</para>
    3030
     
    3434    suppress the execution of the <command>fixincludes</command> script:</para>
    3535
    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}
     37sed '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>
    3745
    3846    <para os="f">The GCC documentation recommends building GCC outside of the source
     
    4452    <para os="h">Prepare GCC for compilation:</para>
    4553
    46 <screen os="i"><userinput>SED=sed CC="gcc -isystem /usr/include" \
     54<screen os="i"><userinput>CC="gcc -isystem /usr/include" \
    4755CXX="g++ -isystem /usr/include" \
    4856LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" \
     
    5260    --enable-clocale=gnu --enable-languages=c,c++ \
    5361    --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>
    5565
    5666    <para os="j">Compile the package:</para>
     
    8999<screen os="t"><userinput>make install</userinput></screen>
    90100
    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
    97102    <filename class="directory">/lib</filename> directory.
    98103    To support those packages, create this symlink:</para>
    99104
    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 C
     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 C
    103108    compiler. To satisfy those packages, create a symlink:</para>
    104109
    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>
    110115
    111116  </sect2>
     
    121126      <seglistitem>
    122127        <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>
    127131        <seg>/usr/include/c++, /usr/lib/gcc, /usr/share/gcc-&gcc-version;</seg>
    128132      </seglistitem>
     
    206210      </varlistentry>
    207211
    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 
    219212      <varlistentry id="libgcc">
    220213        <term><filename class="libraryfile">libgcc</filename></term>
     
    249242      </varlistentry>
    250243
    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 
    285244      <varlistentry id="libmudflap">
    286245        <term><filename class="libraryfile">libmudflap</filename></term>
     
    294253      </varlistentry>
    295254
    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 
    306255      <varlistentry id="libssp">
    307256        <term><filename class="libraryfile">libssp</filename></term>
Note: See TracChangeset for help on using the changeset viewer.