Ignore:
Timestamp:
Jan 7, 2014, 5:10:08 PM (10 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
b1448646
Parents:
07afa1a
Message:

Use libiberty from GCC instead of Binutils

File:
1 edited

Legend:

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

    r07afa1a r3d66e17  
    3636<screen os="fix2"><userinput>cp -v gcc/Makefile.in{,.orig}
    3737sed '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>
    4538
    4639    <para os="f">The GCC documentation recommends building GCC outside of the source
     
    6154    --disable-multilib --disable-libstdcxx-pch \
    6255    --enable-cloog-backend=isl --disable-isl-version-check --with-system-zlib \
    63     --enable-checking=release --enable-libstdcxx-time \
    64     --disable-install-libiberty</userinput></screen>
     56    --enable-checking=release --enable-libstdcxx-time</userinput></screen>
    6557
    6658    <para os="j">Compile the package:</para>
     
    9991<screen os="t"><userinput>make install</userinput></screen>
    10092
    101     <para os="u">Some packages expect the C preprocessor to be installed in the
     93    <para os="u">Install the <filename class="headerfile">libiberty</filename> header
     94    file that is needed by some packages:</para>
     95
     96<screen os="v"><userinput>cp -v ../gcc-&gcc-version;/include/libiberty.h /usr/include</userinput></screen>
     97
     98    <para os="w">Some packages expect the C preprocessor to be installed in the
    10299    <filename class="directory">/lib</filename> directory.
    103100    To support those packages, create this symlink:</para>
    104101
    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
     102<screen os="x"><userinput>ln -sv ../usr/bin/cpp /lib</userinput></screen>
     103
     104    <para os="y">Many packages use the name <command>cc</command> to call the C
    108105    compiler. To satisfy those packages, create a symlink:</para>
    109106
    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>
     107<screen os="z"><userinput>ln -sv gcc /usr/bin/cc</userinput></screen>
     108
     109    <para os="aa">Finally, move a misplaced file:</para>
     110
     111<screen os="ab"><userinput>mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib</userinput></screen>
    115112
    116113  </sect2>
     
    127124        <seg>c++, cc (link to gcc), cpp, g++, gcc, and gcov</seg>
    128125        <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>
     126        libgomp.[a,so], libiberty.a, libmudflap.[a,so], libmudflapth.[a,so],
     127        libssp.[a,so], libssp_nonshared.a, libstdc++.[a,so], libsupc++.a, and
     128        libtsan.[a,so]</seg>
    131129        <seg>/usr/include/c++, /usr/lib/gcc, /usr/share/gcc-&gcc-version;</seg>
    132130      </seglistitem>
     
    242240      </varlistentry>
    243241
     242      <varlistentry id="libiberty">
     243        <term><filename class="libraryfile">libiberty</filename></term>
     244        <listitem>
     245          <para>Contains routines used by various GNU programs, including
     246          <command>getopt</command>, <command>obstack</command>,
     247          <command>strerror</command>, <command>strtol</command>, and
     248          <command>strtoul</command></para>
     249          <indexterm zone="ch-system-gcc libiberty">
     250            <primary sortas="c-libiberty">libiberty</primary>
     251          </indexterm>
     252        </listitem>
     253      </varlistentry>
     254
    244255      <varlistentry id="libmudflap">
    245256        <term><filename class="libraryfile">libmudflap</filename></term>
Note: See TracChangeset for help on using the changeset viewer.