From 1a71dc7d0bb4ef640e3b33dc69b09797f33167e2 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Wed, 5 Sep 2001 22:35:33 +0000 Subject: [Bug 162]: Move patch commands for gzip and sh-utils in ch5 out of main text git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1184 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/shellutils-inst.xml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'chapter05/shellutils-inst.xml') diff --git a/chapter05/shellutils-inst.xml b/chapter05/shellutils-inst.xml index 5f83c1a80..cce9c707b 100644 --- a/chapter05/shellutils-inst.xml +++ b/chapter05/shellutils-inst.xml @@ -1,19 +1,24 @@ Installation of Sh-utils -Before Sh-utils is installed, the sh-utils patch file needs -to be unpacked. +Before Sh-utils is installed, the sh-utils patch file may need to +be applied. This patch is needed to avoid a conflict of variable names +with certain Glibc verions (usually glibc-2.1.x) when compiling sh-utils +statically. It is however safe to apply the patch even if you are +running a different glibc version, so if you aren't sure, it's +best to apply it. -patch -Np1 -i ../sh-utils-&sh-utils-version;.patch && -./configure --prefix=$LFS/usr --disable-nls && +Apply the patch by running the following command: + +patch -Np1 -i ../sh-utils-&sh-utils-version;.patch + +Install Sh-utils by running the following commands: +./configure --prefix=$LFS/usr --disable-nls && make LDFLAGS=-static && make install && cd $LFS/usr/bin && mv date echo false pwd stty $LFS/bin && mv su true uname hostname $LFS/bin -The patch file only needs to be applied if you are running -glibc-2.1.x on your base system. - -- cgit v1.2.3-54-g00ecf