diff options
-rw-r--r-- | chapter05/fileutils-exp.xml | 2 | ||||
-rw-r--r-- | chapter05/fileutils-inst.xml | 16 |
2 files changed, 10 insertions, 8 deletions
diff --git a/chapter05/fileutils-exp.xml b/chapter05/fileutils-exp.xml index 669ff58ba..edb99ae09 100644 --- a/chapter05/fileutils-exp.xml +++ b/chapter05/fileutils-exp.xml @@ -5,7 +5,7 @@ <userinput> lib/Makefile.in > tmp &&</userinput> <userinput>sed 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \</userinput> <userinput> tmp > lib/Makefile.in : </userinput></screen> This is used -to fix a problem with building fileutils statically on AMD systems. If +to fix a problem with building fileutils statically on glibc 2.2.3 systems. If this isn't done, then there is the possibility of all of the fileutils programs causing segmentation faults once chroot is entered in chapter 6.</para> diff --git a/chapter05/fileutils-inst.xml b/chapter05/fileutils-inst.xml index 2d1bafd5d..01239bd7e 100644 --- a/chapter05/fileutils-inst.xml +++ b/chapter05/fileutils-inst.xml @@ -1,16 +1,18 @@ <sect2> <title>Installation of Fileutils</title> -<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>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: -<para><screen><userinput>sed 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \</userinput> +<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> tmp > lib/Makefile.in</userinput></screen></para> + +<para>Install fileutils by running the following commands: +<screen><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> |