Installation of Fileutils
Before we install fileutils statically, if you are using
glibc-2.2.3 you need to apply two seds in order to prevent them giving
segmentation faults once we enter chroot in Chapter 6. The sed commands for
those using glibc-2.2.3 are:
sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \
lib/Makefile.in > tmp &&
sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \
tmp > lib/Makefile.in
Install fileutils by running the following commands:
./configure --disable-nls \
--prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin &&
make LDFLAGS=-static &&
make install &&
cd $LFS/usr/bin &&
ln -s ../../bin/install