gzip-inst.xml 677 B

12345678910111213141516
  1. <sect2>
  2. <title>Installation of Gzip</title>
  3. <para>Before Gzip is installed, the gzip patch file needs to be
  4. unpacked. This patch file is necessary to avoid a conflict of variable
  5. names with glibc when compiling and linking statically.</para>
  6. <para><screen><userinput>patch -Np1 -i ../gzip-&gzip-version;.patch &amp;&amp;</userinput>
  7. <userinput>./configure --prefix=$LFS/usr &amp;&amp;</userinput>
  8. <userinput>make LDFLAGS=-static &amp;&amp;</userinput>
  9. <userinput>make install &amp;&amp;</userinput>
  10. <userinput>cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &amp;&amp;</userinput>
  11. <userinput>rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip</userinput></screen></para>
  12. </sect2>