Fine tune toolchain adjustment commands.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2994 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Greg Schafer 2003-10-16 06:54:55 +00:00
parent 234c74e333
commit d5f8a8fb45
2 changed files with 10 additions and 6 deletions

View File

@ -29,11 +29,13 @@ Binutils build and source directories.</para>
<para>The next thing to do is to amend our GCC specs file so that it points <para>The next thing to do is to amend our GCC specs file so that it points
to the new dynamic linker. A simple sed will accomplish this:</para> to the new dynamic linker. A simple sed will accomplish this:</para>
<!-- Ampersands are needed to allow cut and paste -->
<screen><userinput>SPECFILE=/tools/lib/gcc-lib/*/*/specs <screen><userinput>SPECFILE=/tools/lib/gcc-lib/*/*/specs &amp;&amp;
sed -e 's@/lib/ld-linux.so.2@/tools/lib/ld-linux.so.2@g' \ sed -e 's@/lib/ld-linux.so.2@/tools/lib/ld-linux.so.2@g' \
&nbsp;&nbsp;&nbsp;&nbsp;$SPECFILE > tempspecfile &nbsp;&nbsp;&nbsp;&nbsp;$SPECFILE > tempspecfile &amp;&amp;
mv tempspecfile $SPECFILE mv -f tempspecfile $SPECFILE &amp;&amp;
unset SPECFILE</userinput></screen> unset SPECFILE</userinput></screen>
<para>We recommend that you cut-and-paste the above rather than try and type it <para>We recommend that you cut-and-paste the above rather than try and type it

View File

@ -40,10 +40,12 @@ problem here. The above command takes care of this also.</para>
to the new dynamic linker. Just like earlier on, we use a sed to accomplish to the new dynamic linker. Just like earlier on, we use a sed to accomplish
this:</para> this:</para>
<screen><userinput>SPECFILE=/tools/lib/gcc-lib/*/*/specs <!-- Ampersands are needed to allow cut and paste -->
<screen><userinput>SPECFILE=/tools/lib/gcc-lib/*/*/specs &amp;&amp;
sed -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' \ sed -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' \
&nbsp;&nbsp;&nbsp;&nbsp;$SPECFILE > newspecfile &nbsp;&nbsp;&nbsp;&nbsp;$SPECFILE > newspecfile &amp;&amp;
mv newspecfile $SPECFILE mv -f newspecfile $SPECFILE &amp;&amp;
unset SPECFILE</userinput></screen> unset SPECFILE</userinput></screen>
<para>Again, cutting and pasting the above is recommended. And just like <para>Again, cutting and pasting the above is recommended. And just like