2 <title>Installation of Gzip</title>
4 <para>Before Gzip is installed, the patch file may need to be applied. This
5 patch file is necessary to avoid a conflict of variable names
6 with Glibc-2.0 systems when compiling and linking statically and so is
7 only required if your base system runs Glibc-2.0. It is however
8 safe to apply the patch even if you are running a different glibc
9 version, so if you aren't sure, it's best to apply it.</para>
11 <para>Apply the patch by running the following command:</para>
13 <para><screen><userinput>patch -Np1 -i ../gzip-&gzip-version;.patch</userinput></screen></para>
15 <para>Install Gzip by running the following commands:</para>
17 <para><screen><userinput>./configure --prefix=$LFS/usr &&
18 make LDFLAGS=-static &&
19 make install &&
20 cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &&
21 rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip</userinput></screen></para>