aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2006-08-17 20:00:55 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2006-08-17 20:00:55 +0000
commitde5994967b71be3083a2d642093faea7685263c9 (patch)
tree85cde874b4874cde3adb4a6dbc06d5c4955d2a22 /chapter05
parent8d2b5a37b7084c71b327c3e4d8a2a499050502dd (diff)
Simplified the command that adjusts GCC's specs file
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7775 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/adjusting.xml7
1 files changed, 2 insertions, 5 deletions
diff --git a/chapter05/adjusting.xml b/chapter05/adjusting.xml
index a3d1e9d14..85da55cae 100644
--- a/chapter05/adjusting.xml
+++ b/chapter05/adjusting.xml
@@ -35,11 +35,8 @@ ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld</userinput></screen>
dynamic linker that GCC will use:</para>
<!-- Ampersands are needed to allow copy and paste -->
-<screen><userinput>SPECFILE=`dirname $(gcc -print-libgcc-file-name)`/specs &amp;&amp;
-gcc -dumpspecs > $SPECFILE &amp;&amp;
-sed 's@^/lib/ld-linux.so.2@/tools&amp;@g' $SPECFILE &gt; tempspecfile &amp;&amp;
-mv -vf tempspecfile $SPECFILE &amp;&amp;
-unset SPECFILE</userinput></screen>
+<screen><userinput>gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&amp;@g' \
+ > `dirname $(gcc -print-libgcc-file-name)`/specs</userinput></screen>
<para>It is recommended that the above command be copy-and-pasted in order to
ensure accuracy. Alternatively, the specs file can be edited by hand. This is