zlib-inst.xml 879 B

123456789101112131415161718192021222324252627
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Zlib</title>
  4. <para><screen><userinput>patch -Np1 -i ../zlib-&zlib-version;-final-vsnprintf.patch</userinput></screen></para>
  5. <para>Prepare Zlib to be compiled:</para>
  6. <para><screen><userinput>CFLAGS="-O2 -pipe" CPPFLAGS="-DHAS_vsnprintf" \
  7. &nbsp;&nbsp;&nbsp;&nbsp;./configure --prefix=/stage1 --shared</userinput></screen></para>
  8. <para>The <emphasis>-fPIC</emphasis> flag helps to assure
  9. quality in the dynamic zlib library.</para>
  10. <para>Some packages expect a static zlib library to be present
  11. on the system. To satisfy those programs, compile both the
  12. shared and static libraries:</para>
  13. <para><screen><userinput>make LDFLAGS="-s"
  14. make test</userinput></screen></para>
  15. <para>Install the libraries:</para>
  16. <para><screen><userinput>make install</userinput></screen></para>
  17. </sect2>