Changeset 3d66e17 for BOOK/final-system


Ignore:
Timestamp:
Jan 7, 2014, 5:10:08 PM (11 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

Location:
BOOK/final-system
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/64/binutils.xml

    r07afa1a r3d66e17  
    116116    xpointer="xpointer(//*[@os='s'])"/>
    117117
    118     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    119     href="../common/binutils.xml"
    120     xpointer="xpointer(//*[@os='t'])"/>
    121 
    122     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    123     href="../common/binutils.xml"
    124     xpointer="xpointer(//*[@os='u'])"/>
    125 
    126118  </sect2>
    127119
  • BOOK/final-system/64/gcc.xml

    r07afa1a r3d66e17  
    4343    href="../common/gcc.xml"
    4444    xpointer="xpointer(//*[@os='fix2'])"/>
    45 
    46     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    47     href="../common/gcc.xml"
    48     xpointer="xpointer(//*[@os='d'])"/>
    49 
    50     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    51     href="../common/gcc.xml"
    52     xpointer="xpointer(//*[@os='e'])"/>
    5345
    5446    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    142134    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    143135    href="../common/gcc.xml"
    144     xpointer="xpointer(//*[@os='z'])"/>
     136    xpointer="xpointer(//*[@os='aa'])"/>
     137
     138    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     139    href="../common/gcc.xml"
     140    xpointer="xpointer(//*[@os='ab'])"/>
    145141
    146142  </sect2>
  • BOOK/final-system/common/binutils.xml

    r07afa1a r3d66e17  
    104104<screen os="s"><userinput>make tooldir=/usr install</userinput></screen>
    105105
    106     <para os="t">Install the <filename class="headerfile">libiberty</filename> header
    107     file that is needed by some packages:</para>
    108 
    109 <screen os="u"><userinput>cp -v ../binutils-&binutils-dir;/include/libiberty.h /usr/include</userinput></screen>
    110 
    111106  </sect2>
    112107
     
    123118        objdump,
    124119        ranlib, readelf, size, strings, and strip</seg>
    125         <seg>libiberty.a, libbfd.[a,so], and libopcodes.[a,so]</seg>
     120        <seg>libbfd.[a,so], and libopcodes.[a,so]</seg>
    126121        <seg>/usr/lib/ldscripts</seg>
    127122      </seglistitem>
     
    310305      </varlistentry>
    311306
    312       <varlistentry id="libiberty">
    313         <term><filename class="libraryfile">libiberty</filename></term>
    314         <listitem>
    315           <para>Contains routines used by various GNU programs, including
    316           <command>getopt</command>, <command>obstack</command>,
    317           <command>strerror</command>, <command>strtol</command>, and
    318           <command>strtoul</command></para>
    319           <indexterm zone="ch-system-binutils libiberty">
    320             <primary sortas="c-libiberty">libiberty</primary>
    321           </indexterm>
    322         </listitem>
    323       </varlistentry>
    324 
    325307      <varlistentry id="libbfd">
    326308        <term><filename class="libraryfile">libbfd</filename></term>
  • 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>
  • BOOK/final-system/mips/gcc.xml

    r07afa1a r3d66e17  
    3737    href="../common/gcc.xml"
    3838    xpointer="xpointer(//*[@os='fix2'])"/>
    39 
    40     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    41     href="../common/gcc.xml"
    42     xpointer="xpointer(//*[@os='d'])"/>
    43 
    44     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    45     href="../common/gcc.xml"
    46     xpointer="xpointer(//*[@os='e'])"/>
    4739
    4840    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    138130    xpointer="xpointer(//*[@os='z'])"/>
    139131
     132    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     133    href="../common/gcc.xml"
     134    xpointer="xpointer(//*[@os='aa'])"/>
     135
     136    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     137    href="../common/gcc.xml"
     138    xpointer="xpointer(//*[@os='ab'])"/>
     139
    140140  </sect2>
    141141
  • BOOK/final-system/mips64-64/gcc.xml

    r07afa1a r3d66e17  
    4343    href="../common/gcc.xml"
    4444    xpointer="xpointer(//*[@os='fix2'])"/>
    45 
    46     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    47     href="../common/gcc.xml"
    48     xpointer="xpointer(//*[@os='d'])"/>
    49 
    50     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    51     href="../common/gcc.xml"
    52     xpointer="xpointer(//*[@os='e'])"/>
    5345
    5446    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    144136    xpointer="xpointer(//*[@os='z'])"/>
    145137
     138    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     139    href="../common/gcc.xml"
     140    xpointer="xpointer(//*[@os='aa'])"/>
     141
     142    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     143    href="../common/gcc.xml"
     144    xpointer="xpointer(//*[@os='ab'])"/>
     145
    146146  </sect2>
    147147
  • BOOK/final-system/mips64/binutils.xml

    r07afa1a r3d66e17  
    108108    xpointer="xpointer(//*[@os='s'])"/>
    109109
    110     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    111     href="../common/binutils.xml"
    112     xpointer="xpointer(//*[@os='t'])"/>
    113 
    114     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    115     href="../common/binutils.xml"
    116     xpointer="xpointer(//*[@os='u'])"/>
    117 
    118110  </sect2>
    119111
  • BOOK/final-system/mips64/gcc.xml

    r07afa1a r3d66e17  
    4040    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    4141    href="../common/gcc.xml"
    42     xpointer="xpointer(//*[@os='d'])"/>
    43 
    44     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    45     href="../common/gcc.xml"
    46     xpointer="xpointer(//*[@os='e'])"/>
    47 
    48     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    49     href="../common/gcc.xml"
    5042    xpointer="xpointer(//*[@os='f'])"/>
    5143
     
    6658    --enable-clocale=gnu --enable-languages=c,c++ --disable-libstdcxx-pch \
    6759    --enable-cloog-backend=isl --disable-isl-version-check --with-system-zlib \
    68     --enable-checking=release --enable-libstdcxx-time \
    69     --disable-install-libiberty</userinput></screen>
     60    --enable-checking=release --enable-libstdcxx-time</userinput></screen>
    7061
    7162    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    145136mv -v /usr/lib64/*gdb.py /usr/share/gdb/auto-load/usr/lib64</userinput></screen>
    146137
     138    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     139    href="../common/gcc.xml"
     140    xpointer="xpointer(//*[@os='aa'])"/>
     141
     142    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     143    href="../common/gcc.xml"
     144    xpointer="xpointer(//*[@os='ab'])"/>
     145
    147146  </sect2>
    148147
  • BOOK/final-system/multilib/binutils.xml

    r07afa1a r3d66e17  
    108108    xpointer="xpointer(//*[@os='s'])"/>
    109109
    110     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    111     href="../common/binutils.xml"
    112     xpointer="xpointer(//*[@os='t'])"/>
    113 
    114     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    115     href="../common/binutils.xml"
    116     xpointer="xpointer(//*[@os='u'])"/>
    117 
    118110  </sect2>
    119111
  • BOOK/final-system/multilib/gcc.xml

    r07afa1a r3d66e17  
    4040    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    4141    href="../common/gcc.xml"
    42     xpointer="xpointer(//*[@os='d'])"/>
    43 
    44     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    45     href="../common/gcc.xml"
    46     xpointer="xpointer(//*[@os='e'])"/>
    47 
    48     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    49     href="../common/gcc.xml"
    5042    xpointer="xpointer(//*[@os='f'])"/>
    5143
     
    6658    --enable-clocale=gnu --enable-languages=c,c++ --disable-libstdcxx-pch \
    6759    --enable-cloog-backend=isl --disable-isl-version-check --with-system-zlib \
    68     --enable-checking=release --enable-libstdcxx-time \
    69     --disable-install-libiberty</userinput></screen>
     60    --enable-checking=release --enable-libstdcxx-time</userinput></screen>
    7061
    7162    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    143134mv -v /usr/lib64/*gdb.py /usr/share/gdb/auto-load/usr/lib64</userinput></screen>
    144135
     136    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     137    href="../common/gcc.xml"
     138    xpointer="xpointer(//*[@os='aa'])"/>
     139
     140    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     141    href="../common/gcc.xml"
     142    xpointer="xpointer(//*[@os='ab'])"/>
     143
    145144  </sect2>
    146145
  • BOOK/final-system/ppc/gcc.xml

    r07afa1a r3d66e17  
    3737    href="../common/gcc.xml"
    3838    xpointer="xpointer(//*[@os='fix2'])"/>
    39 
    40     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    41     href="../common/gcc.xml"
    42     xpointer="xpointer(//*[@os='d'])"/>
    43 
    44     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    45     href="../common/gcc.xml"
    46     xpointer="xpointer(//*[@os='e'])"/>
    4739
    4840    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    136128    xpointer="xpointer(//*[@os='z'])"/>
    137129
     130    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     131    href="../common/gcc.xml"
     132    xpointer="xpointer(//*[@os='aa'])"/>
     133
     134    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     135    href="../common/gcc.xml"
     136    xpointer="xpointer(//*[@os='ab'])"/>
     137
    138138  </sect2>
    139139
  • BOOK/final-system/ppc64/gcc.xml

    r07afa1a r3d66e17  
    3737    href="../common/gcc.xml"
    3838    xpointer="xpointer(//*[@os='fix2'])"/>
    39 
    40     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    41     href="../common/gcc.xml"
    42     xpointer="xpointer(//*[@os='d'])"/>
    43 
    44     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    45     href="../common/gcc.xml"
    46     xpointer="xpointer(//*[@os='e'])"/>
    4739
    4840    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    138130    xpointer="xpointer(//*[@os='z'])"/>
    139131
     132    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     133    href="../common/gcc.xml"
     134    xpointer="xpointer(//*[@os='aa'])"/>
     135
     136    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     137    href="../common/gcc.xml"
     138    xpointer="xpointer(//*[@os='ab'])"/>
     139
    140140  </sect2>
    141141
  • BOOK/final-system/x86_64-64/binutils.xml

    r07afa1a r3d66e17  
    125125    xpointer="xpointer(//*[@os='s'])"/>
    126126
    127     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    128     href="../common/binutils.xml"
    129     xpointer="xpointer(//*[@os='t'])"/>
    130 
    131     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    132     href="../common/binutils.xml"
    133     xpointer="xpointer(//*[@os='u'])"/>
    134 
    135127  </sect2>
    136128
Note: See TracChangeset for help on using the changeset viewer.