aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/gcc.xml
diff options
context:
space:
mode:
authorKen Moffat <ken@linuxfromscratch.org>2006-01-10 20:39:53 +0000
committerKen Moffat <ken@linuxfromscratch.org>2006-01-10 20:39:53 +0000
commit3154d10b5789ba5a19cf90ed46a564e2f363b604 (patch)
tree52f6358762621fbf0bb862eb1845ab1e04d71be8 /chapter06/gcc.xml
parentf420687e723a73d2d8d215393c714abd6beaf43f (diff)
Use a sed so that gccbug uses mktemp.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7262 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/gcc.xml')
-rw-r--r--chapter06/gcc.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml
index f2ac03ae9..b67e4ede7 100644
--- a/chapter06/gcc.xml
+++ b/chapter06/gcc.xml
@@ -52,6 +52,14 @@ to not require fixing, issue the following command to prevent the
<screen><userinput>sed -i 's@\./fixinc\.sh@-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>