r6711 - in trunk/BOOK: chapter01 chapter05 chapter06

matthew at linuxfromscratch.org matthew at linuxfromscratch.org
Thu Aug 18 13:18:32 PDT 2005


Author: matthew
Date: 2005-08-18 14:18:30 -0600 (Thu, 18 Aug 2005)
New Revision: 6711

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter05/adjusting.xml
   trunk/BOOK/chapter06/readjusting.xml
Log:
Use -print-file-name=specs instead of the undocumented --print-file-name switch for GCC's specs file edit

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2005-08-18 20:10:08 UTC (rev 6710)
+++ trunk/BOOK/chapter01/changelog.xml	2005-08-18 20:18:30 UTC (rev 6711)
@@ -114,6 +114,10 @@
 </itemizedlist>
 </listitem>
 
+<listitem><para>August 18th, 2005 [matt]: Refrain from using the undocumented
+--print-file switch for GCC's spec file edit.  Use -print-file-name=specs
+instead (Greg Schafer).</para></listitem>
+
 <listitem><para>August 18th, 2005 [ken]: Add a patch to sanitise bzgrep's
 handling of filenames.</para></listitem>
 

Modified: trunk/BOOK/chapter05/adjusting.xml
===================================================================
--- trunk/BOOK/chapter05/adjusting.xml	2005-08-18 20:10:08 UTC (rev 6710)
+++ trunk/BOOK/chapter05/adjusting.xml	2005-08-18 20:18:30 UTC (rev 6711)
@@ -36,7 +36,7 @@
 
 <!-- Ampersands are needed to allow copy and paste -->
 
-<screen><userinput>SPECFILE=`gcc --print-file specs` &&
+<screen><userinput>SPECFILE=`gcc -print-file-name=specs` &&
 sed 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2 at g' \
     $SPECFILE > tempspecfile &&
 mv -f tempspecfile $SPECFILE &&

Modified: trunk/BOOK/chapter06/readjusting.xml
===================================================================
--- trunk/BOOK/chapter06/readjusting.xml	2005-08-18 20:10:08 UTC (rev 6710)
+++ trunk/BOOK/chapter06/readjusting.xml	2005-08-18 20:18:30 UTC (rev 6711)
@@ -55,7 +55,7 @@
 
 <screen><userinput>perl -pi -e 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2 at g;' \
     -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' \
-        `gcc --print-file specs`</userinput></screen>
+        `gcc -print-file-name=specs`</userinput></screen>
 
 <para>It is a good idea to visually inspect the specs file to verify the intended 
 change was actually made.</para>




More information about the lfs-book mailing list