mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-02-01 03:42:13 +00:00
9a3fa86bae
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@829 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
17 lines
677 B
XML
17 lines
677 B
XML
<sect2>
|
|
<title>Installation of Gzip</title>
|
|
|
|
<para>Before Gzip is installed, the gzip patch file needs to be
|
|
unpacked. This patch file is necessary to avoid a conflict of variable
|
|
names with glibc when compiling and linking statically.</para>
|
|
|
|
<para><screen><userinput>patch -Np1 -i ../gzip-&gzip-version;.patch &&</userinput>
|
|
<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>
|
|
|