aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/gzip-inst.xml
diff options
context:
space:
mode:
authorMark Hymers <markh@linuxfromscratch.org>2001-09-05 22:35:33 +0000
committerMark Hymers <markh@linuxfromscratch.org>2001-09-05 22:35:33 +0000
commit1a71dc7d0bb4ef640e3b33dc69b09797f33167e2 (patch)
tree4672cee13f207caea0eba377dcfc0b0b66b1a7f7 /chapter05/gzip-inst.xml
parenta8fd7985d843d6547b67c98d9341302f12aca60a (diff)
[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
Diffstat (limited to 'chapter05/gzip-inst.xml')
-rw-r--r--chapter05/gzip-inst.xml16
1 files changed, 12 insertions, 4 deletions
diff --git a/chapter05/gzip-inst.xml b/chapter05/gzip-inst.xml
index 8d19c3cbb..09e431d2d 100644
--- a/chapter05/gzip-inst.xml
+++ b/chapter05/gzip-inst.xml
@@ -1,11 +1,19 @@
<sect2>
<title>Installation of Gzip</title>
-<para>Before Gzip is installed, the gzip patch file needs to be
-unpacked.</para>
+<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><screen><userinput>patch -Np1 -i ../gzip-&gzip-version;.patch &amp;&amp;</userinput>
-<userinput>./configure --prefix=$LFS/usr &amp;&amp;</userinput>
+<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 &amp;&amp;</userinput>
<userinput>make LDFLAGS=-static &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput>
<userinput>cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &amp;&amp;</userinput>