Переглянути джерело

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
Matthew Burgess 19 роки тому
батько
коміт
de5994967b
2 змінених файлів з 6 додано та 5 видалено
  1. 4 0
      chapter01/changelog.xml
  2. 2 5
      chapter05/adjusting.xml

+ 4 - 0
chapter01/changelog.xml

@@ -38,6 +38,10 @@
     <listitem>
       <para>2006-08-17</para>
       <itemizedlist>
+        <listitem>
+          <para>[matthew] - Simplified the command that adjusts GCC's specs
+            file.  Fixes #1837.  Thanks to Robery Connolly.</para>
+        </listitem>
         <listitem>
           <para>[matthew] - Noted devfs' removal from the kernel.  Thanks to
             Peter Ennis.</para>

+ 2 - 5
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