Changeset 0eb90658


Ignore:
Timestamp:
10/12/2008 04:09:47 AM (16 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
a5b1d9e
Parents:
3f39abf3
Message:

Use static linked gcc for pass 1 - #2056.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8647 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r3f39abf3 r0eb90658  
    4242      <itemizedlist>
    4343        <listitem>
     44          <para>[dj] - Changed Chapter 5 GCC Pass 1 build to static.  Thanks to
     45          Jeremy Huntwork for the suggestion and supporting text.</para>
     46        </listitem>
     47        <listitem>
    4448          <para>[dj] - Added note to Chapter 6 GCC abuot the new include-fixed
    4549          directory and changed the sample output to match.</para>
  • chapter05/gcc-pass1.xml

    r3f39abf3 r0eb90658  
    6262
    6363<screen><userinput remap="configure">CC="gcc -B/usr/bin/" ../gcc-&gcc-version;/configure --prefix=/tools \
    64     --with-local-prefix=/tools --disable-nls --enable-shared \
    65     --enable-languages=c --disable-decimal-float</userinput></screen>
     64    --with-local-prefix=/tools --disable-nls --disable-shared \
     65    --enable-languages=c</userinput></screen>
    6666
    6767    <variablelist>
     
    9191
    9292      <varlistentry>
    93         <term><parameter>--enable-shared</parameter></term>
     93        <term><parameter>--disable-shared</parameter></term>
    9494        <listitem>
    95           <para>This switch allows the building of <filename
    96           class="libraryfile">libgcc_s.so.1</filename> and
    97           <filename class="libraryfile">libgcc_eh.a</filename>.
    98           Having <filename class="libraryfile">libgcc_eh.a</filename>
    99           available ensures that the configure script for Glibc (the
    100           next package we compile) produces the proper results.</para>
     95          <para>This switch forces gcc to link its internal libraries
     96          statically. We do this to avoid possible issues with the host
     97          system.</para>
    10198        </listitem>
    10299      </varlistentry>
     
    131128<screen><userinput remap="install">make install</userinput></screen>
    132129
     130    <para>Using <parameter>--disable-shared</parameter> means that the
     131    <filename>libgcc_eh.a</filename> file isn't created and installed. The
     132    Glibc package depends on this library as it uses
     133    <parameter>-lgcc_eh</parameter> within its build system. We can satisfy
     134    that dependency by creating a symlink to <filename>libgcc.a</filename>,
     135    since that file will end up containing the objects normally contained in
     136    <filename>libgcc_eh.a</filename>.</para>
     137
     138<screen><userinput remap="install">ln -vs libgcc.a `gcc -print-libgcc-file-name | \
     139    sed 's/libgcc/&amp;_eh/'`</userinput></screen>
     140
    133141    <para>As a finishing touch, create a symlink. Many programs and scripts
    134142    run <command>cc</command> instead of <command>gcc</command>, which is
Note: See TracChangeset for help on using the changeset viewer.