r7262 - in trunk/BOOK: chapter01 chapter06

ken at linuxfromscratch.org ken at linuxfromscratch.org
Tue Jan 10 12:39:54 PST 2006


Author: ken
Date: 2006-01-10 13:39:53 -0700 (Tue, 10 Jan 2006)
New Revision: 7262

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter06/gcc.xml
Log:
Use a sed so that gccbug uses mktemp.

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2006-01-10 20:26:14 UTC (rev 7261)
+++ trunk/BOOK/chapter01/changelog.xml	2006-01-10 20:39:53 UTC (rev 7262)
@@ -124,7 +124,8 @@
 </itemizedlist>
 </listitem>
 
-<listitem><para>January 10, 2006 [ken]: Revert my move of mktemp.</para>
+<listitem><para>January 10, 2006 [ken]: Revert my move of mktemp and add a
+sed to correct gccbug.</para>
 </listitem>
 
 <listitem><para>January 7, 2006 [ken]: Alter the Perl instructions to

Modified: trunk/BOOK/chapter06/gcc.xml
===================================================================
--- trunk/BOOK/chapter06/gcc.xml	2006-01-10 20:26:14 UTC (rev 7261)
+++ trunk/BOOK/chapter06/gcc.xml	2006-01-10 20:39:53 UTC (rev 7262)
@@ -52,6 +52,14 @@
 
 <screen><userinput>sed -i 's@\./fixinc\.sh at -c true@' gcc/Makefile.in</userinput></screen>
 
+<para>GCC provides a <command>gccbug</command> script which detects at
+compile time whether mktemp is present, and hardcodes the result in a test.
+This will cause the script to fall back to using less random names for
+temporary files.  We will be installing mktemp later, so the following sed
+will simulate its presence.</para>
+
+<screen>sed -i 's/@have_mktemp_command@/yes/' gcc/gccbug.in</screen>
+
 <para>The GCC documentation recommends building GCC outside of the source
 directory in a dedicated build directory:</para>
 




More information about the lfs-book mailing list