diff options
-rw-r--r-- | chapter05/fileutils-inst.xml | 11 |
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 > tmp &&</userinput> +<userinput>sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput> +<userinput> tmp > lib/Makefile.in &&</userinput> +<userinput>./configure --disable-nls \</userinput> <userinput> --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &&</userinput> <userinput>make LDFLAGS=-static &&</userinput> <userinput>make install &&</userinput> |