Преглед на файлове

Use "gcc --print-file specs" to determine the location of the specs file

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3761 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Zack Winkles преди 21 години
родител
ревизия
9109cd46dd
променени са 3 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 4 0
      chapter01/changelog.xml
  2. 1 1
      chapter05/adjusting.xml
  3. 1 1
      chapter06/readjusting.xml

+ 4 - 0
chapter01/changelog.xml

@@ -104,6 +104,10 @@ first a summary, then a detailed log.</para>
 </itemizedlist>
 </listitem>
 
+<listitem><para>June 7, 2004 [winkie]: Use the
+<quote>gcc --print-file specs</quote> command to determine the location of the
+<quote>specs</quote> file.</para></listitem>
+
 <listitem><para>June 7, 2004 [winkie]: Updated patch names to match those used
 by the patches project.</para></listitem>
 

+ 1 - 1
chapter05/adjusting.xml

@@ -39,7 +39,7 @@ to the new dynamic linker. A simple sed script will accomplish this:</para>
 
 <!-- Ampersands are needed to allow cut and paste -->
 
-<screen><userinput>SPECFILE=/tools/lib/gcc/*/*/specs &amp;&amp;
+<screen><userinput>SPECFILE=`gcc --print-file specs` &amp;&amp;
 sed -e 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \
     $SPECFILE &gt; tempspecfile &amp;&amp;
 mv -f tempspecfile $SPECFILE &amp;&amp;

+ 1 - 1
chapter06/readjusting.xml

@@ -52,7 +52,7 @@ this:</para>
 
 <!-- Ampersands are needed to allow cut and paste -->
 
-<screen><userinput>SPECFILE=/tools/lib/gcc/*/*/specs &amp;&amp;
+<screen><userinput>SPECFILE=`gcc --print-file specs` &amp;&amp;
 sed -e 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g' \
     $SPECFILE &gt; newspecfile &amp;&amp;
 mv -f newspecfile $SPECFILE &amp;&amp;