Changeset 1ba726f


Ignore:
Timestamp:
01/30/2006 01:45:25 AM (18 years ago)
Author:
Jeremy Huntwork <jhuntwork@…>
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.3, 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:
b87ea87
Parents:
bedc966
Message:

Restore the use of *startfile_prefix_spec

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

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    rbedc966 r1ba726f  
    3636    </listitem>
    3737-->
     38
     39    <listitem>
     40      <para>January 29, 2006</para>
     41      <itemizedlist>
     42        <listitem>
     43          <para>[jhuntwork] - Restore the use of *startfile_prefix_spec.
     44        </listitem>
     45      </itemizedlist>
     46    </listitem>
    3847
    3948    <listitem>
  • chapter06/gcc.xml

    rbedc966 r1ba726f  
    100100<screen><userinput>ln -sv ../usr/bin/cpp /lib</userinput></screen>
    101101
     102<para>Many packages use the name <command>cc</command> to call the C
     103compiler. To satisfy those packages, create a symlink:</para>
     104
     105<screen><userinput>ln -sv gcc /usr/bin/cc</userinput></screen>
     106
    102107<note><para>At this point, it is strongly recommended to repeat the
    103108sanity check performed earlier in this chapter. Refer back to <xref
  • chapter06/readjusting.xml

    rbedc966 r1ba726f  
    2020directories.</para>
    2121
    22 <para>First, create a symlink to the adjusted linker we created in chapter 5.</para>
     22<para>First, backup the <filename class="directory">/tools</filename> linker, and
     23replace it with the adjusted linker we made in chapter 5. We'll also create a
     24link to its counterpart in <filename class="directory">/tools/$MACHTYPE/bin</filename></para>
    2325
    24 <screen><userinput>ln -sv /tools/bin/ld-new /usr/bin/ld</userinput></screen>
     26<screen><userinput>mv -v /tools/bin/{ld,ld-old}
     27mv -v /tools/$MACHTYPE/bin/{ld,ld-old}
     28mv -v /tools/bin/{ld-new,ld}
     29ln -sv /tools/bin/ld /tools/$MACHTYPE/bin/ld</userinput></screen>
    2530
    2631<para>Next, amend the GCC specs file so that it points to the new
    27 dynamic linker. A <command>sed</command> command accomplishes this:</para>
     32dynamic linker, and so that GCC knows where to find its start files.
     33A <command>perl</command> command accomplishes this:</para>
    2834
    29 <screen><userinput>SPECFILE=`dirname $(gcc -print-libgcc-file-name)`/specs &amp;&amp;
    30 gcc -dumpspecs > $SPECFILE &amp;&amp;
    31 sed -i -e '/^\*link:$/{n;s,$, -L/usr/lib,}' \
    32        -e 's@^/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' $SPECFILE &amp;&amp;
    33 unset SPECFILE</userinput></screen>
     35<screen><userinput>gcc -dumpspecs | \
     36perl -pi -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g;' \
     37     -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' &gt; \
     38     `dirname $(gcc --print-libgcc-file-name)`/specs
     39</userinput></screen>
    3440
    3541<para>It is a good idea to visually inspect the specs file to verify the intended
     
    4349linkend="ch-tools-toolchaintechnotes" role=","/> if
    4450necessary.</para></important>
    45 
    46 <para>Now create a temporary wrapper script for <filename>gcc</filename>.
    47 This script will point to the real <filename>gcc</filename>
    48 in <filename class="directory">/tools</filename> but with adjusted parameters
    49 to ensure that GCC in the next section links to our newly installed Glibc.</para>
    50 
    51 <screen><userinput>cat &gt; /usr/bin/gcc &lt;&lt; "EOF"
    52 #!/bin/bash
    53 /tools/bin/gcc -B/usr/lib/ -B/usr/bin/ $@
    54 EOF
    55 chmod 755 /usr/bin/gcc
    56 ln -s gcc /usr/bin/cc</userinput></screen>
    5751
    5852<caution><para>It is imperative at this point to stop and ensure that
  • general.ent

    rbedc966 r1ba726f  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    2 <!ENTITY version "SVN-20060126">
    3 <!ENTITY releasedate "January 26, 2006">
     2<!ENTITY version "SVN-20060129">
     3<!ENTITY releasedate "January 29, 2006">
    44<!ENTITY milestone "6.2">
    55<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
Note: See TracChangeset for help on using the changeset viewer.