diff options
Diffstat (limited to 'chapter05')
-rw-r--r-- | chapter05/adjusting.xml | 7 |
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 && -gcc -dumpspecs > $SPECFILE && -sed 's@^/lib/ld-linux.so.2@/tools&@g' $SPECFILE > tempspecfile && -mv -vf tempspecfile $SPECFILE && -unset SPECFILE</userinput></screen> +<screen><userinput>gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@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 |