From 5b99103d3b5f0926b99f0d8735b5b169b8ac01f9 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Tue, 7 Aug 2001 16:43:01 +0000 Subject: Bug 121: fileutils-static change to prevent segfaults git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@923 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/fileutils-inst.xml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'chapter05') 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 @@ Installation of Fileutils -Install Fileutils by running the following commands: +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: -./configure --disable-nls \ +sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ + lib/Makefile.in > tmp && +sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \ + tmp > lib/Makefile.in && +./configure --disable-nls \    --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin && make LDFLAGS=-static && make install && -- cgit v1.2.3-54-g00ecf