zlib.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-zlib" role="wrap">
  8. <?dbhtml filename="zlib.html"?>
  9. <sect1info condition="script">
  10. <productname>zlib</productname>
  11. <productnumber>&zlib-version;</productnumber>
  12. <address>&zlib-url;</address>
  13. </sect1info>
  14. <title>Zlib-&zlib-version;</title>
  15. <indexterm zone="ch-system-zlib">
  16. <primary sortas="a-Zlib">Zlib</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Zlib package contains compression and decompression routines used by
  21. some programs.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&zlib-ch6-sbu;</seg>
  27. <seg>&zlib-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Zlib</title>
  33. <note>
  34. <para>Zlib is known to build its shared library incorrectly if
  35. <envar>CFLAGS</envar> is specified in the environment. If using
  36. a specified <envar>CFLAGS</envar> variable, be sure to add the
  37. <parameter>-fPIC</parameter> directive to the <envar>CFLAGS</envar>
  38. variable for the duration of the configure command below, then
  39. remove it afterwards.</para>
  40. </note>
  41. <para>Modify the build scripts to ensure compilation with position independent
  42. code and allow building both static and dynamic libraries in one step:</para>
  43. <screen><userinput remap="configure">patch -Np1 -i ../&zlib-fpic-patch;</userinput></screen>
  44. <para>Prepare Zlib for compilation:</para>
  45. <screen><userinput remap="configure">./configure --prefix=/usr --shared</userinput></screen>
  46. <para>Compile the package:</para>
  47. <screen><userinput remap="make">make</userinput></screen>
  48. <para>To test the results, issue:</para>
  49. <screen><userinput remap="test">make check</userinput></screen>
  50. <para>Install the libraries:</para>
  51. <screen><userinput remap="install">make install</userinput></screen>
  52. <para>Finally, fix permissions on the static library:</para>
  53. <screen><userinput remap="install">chmod 0644 /usr/lib/libz.a</userinput></screen>
  54. </sect2>
  55. <sect2 id="contents-zlib" role="content">
  56. <title>Contents of Zlib</title>
  57. <segmentedlist>
  58. <segtitle>Installed libraries</segtitle>
  59. <seglistitem>
  60. <seg>libz.{a,so}</seg>
  61. </seglistitem>
  62. </segmentedlist>
  63. <variablelist>
  64. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  65. <?dbfo list-presentation="list"?>
  66. <?dbhtml list-presentation="table"?>
  67. <varlistentry id="libz">
  68. <term><filename class="libraryfile">libz</filename></term>
  69. <listitem>
  70. <para>Contains compression and decompression functions used by
  71. some programs</para>
  72. <indexterm zone="ch-system-zlib libz">
  73. <primary sortas="c-libz">libz</primary>
  74. </indexterm>
  75. </listitem>
  76. </varlistentry>
  77. </variablelist>
  78. </sect2>
  79. </sect1>