mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 21:49:13 +00:00
1a71dc7d0b
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1184 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
24 lines
1010 B
XML
24 lines
1010 B
XML
<sect2>
|
|
<title>Installation of Gzip</title>
|
|
|
|
<para>Before Gzip is installed, the patch file may need to be applied. This
|
|
patch file is necessary to avoid a conflict of variable names
|
|
with Glibc-2.0 systems when compiling and linking statically and so is
|
|
only required if your base system runs Glibc-2.0. 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.</para>
|
|
|
|
<para>Apply the patch by running the following command:</para>
|
|
|
|
<para><userinput>patch -Np1 -i ../gzip-&gzip-version;.patch</userinput></para>
|
|
|
|
<para>Install Gzip by running the following commands:</para>
|
|
<para><screen><userinput>./configure --prefix=$LFS/usr &&</userinput>
|
|
<userinput>make LDFLAGS=-static &&</userinput>
|
|
<userinput>make install &&</userinput>
|
|
<userinput>cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &&</userinput>
|
|
<userinput>rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|