Ignore:
File:
1 edited

Legend:

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

    r686839b r24b004c  
    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>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>
    4537
    4638    <para os="f">The GCC documentation recommends building GCC outside of the source
     
    5244    <para os="h">Prepare GCC for compilation:</para>
    5345
    54 <screen os="i"><userinput>CC="gcc -isystem /usr/include" \
     46<screen os="i"><userinput>SED=sed CC="gcc -isystem /usr/include" \
    5547CXX="g++ -isystem /usr/include" \
    5648LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" \
     
    6052    --enable-clocale=gnu --enable-languages=c,c++ \
    6153    --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>
    6555
    6656    <para os="j">Compile the package:</para>
     
    9989<screen os="t"><userinput>make install</userinput></screen>
    10090
    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
    10297    <filename class="directory">/lib</filename> directory.
    10398    To support those packages, create this symlink:</para>
    10499
    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
     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
    108103    compiler. To satisfy those packages, create a symlink:</para>
    109104
    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>
    115110
    116111  </sect2>
     
    126121      <seglistitem>
    127122        <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>
    131127        <seg>/usr/include/c++, /usr/lib/gcc, /usr/share/gcc-&gcc-version;</seg>
    132128      </seglistitem>
     
    210206      </varlistentry>
    211207
     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
    212219      <varlistentry id="libgcc">
    213220        <term><filename class="libraryfile">libgcc</filename></term>
     
    242249      </varlistentry>
    243250
     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
    244285      <varlistentry id="libmudflap">
    245286        <term><filename class="libraryfile">libmudflap</filename></term>
     
    253294      </varlistentry>
    254295
     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
    255306      <varlistentry id="libssp">
    256307        <term><filename class="libraryfile">libssp</filename></term>
Note: See TracChangeset for help on using the changeset viewer.