| 123456789101112131415161718192021 | <sect2><title>Installation of Fileutils</title><para>Before we install fileutils statically, we apply two seds inorder to prevent them giving segmentation faults (in certain cases) once weenter chroot in Chapter 6.  Install Fileutils by running the following commands:</para><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><userinput>cd $LFS/usr/bin &&</userinput><userinput>ln -s ../../bin/install</userinput></screen></para></sect2>
 |