aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/fileutils-inst.xml
diff options
context:
space:
mode:
authorMark Hymers <markh@linuxfromscratch.org>2001-08-07 16:43:01 +0000
committerMark Hymers <markh@linuxfromscratch.org>2001-08-07 16:43:01 +0000
commit5b99103d3b5f0926b99f0d8735b5b169b8ac01f9 (patch)
tree8ef42a93d6068990a3c7be36d54335423a3c7ca0 /chapter05/fileutils-inst.xml
parent1dc3102768341ef023f012fef77ddee454d98f21 (diff)
Bug 121: fileutils-static change to prevent segfaults
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@923 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/fileutils-inst.xml')
-rw-r--r--chapter05/fileutils-inst.xml11
1 files changed, 9 insertions, 2 deletions
diff --git a/chapter05/fileutils-inst.xml b/chapter05/fileutils-inst.xml
index 1fb41f3ca..2d1bafd5d 100644
--- a/chapter05/fileutils-inst.xml
+++ b/chapter05/fileutils-inst.xml
@@ -1,9 +1,16 @@
<sect2>
<title>Installation of Fileutils</title>
-<para>Install Fileutils by running the following commands:</para>
+<para>Before we install fileutils statically, we apply two seds in
+order to prevent them giving segmentation faults (in certain cases) once we
+enter chroot in Chapter 6. Install Fileutils by running the following
+commands:</para>
-<para><screen><userinput>./configure --disable-nls \</userinput>
+<para><screen><userinput>sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput>
+<userinput> lib/Makefile.in &gt; tmp &amp;&amp;</userinput>
+<userinput>sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput>
+<userinput> tmp &gt; lib/Makefile.in &amp;&amp;</userinput>
+<userinput>./configure --disable-nls \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;--prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &amp;&amp;</userinput>
<userinput>make LDFLAGS=-static &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput>