|
@@ -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
|