zlib.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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-tools-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-tools-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-fin-sbu;</seg>
  27. <seg>&zlib-fin-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Zlib</title>
  33. <para>Prepare Zlib for compilation:</para>
  34. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  35. <para>Compile the package:</para>
  36. <screen><userinput remap="make">make</userinput></screen>
  37. <para>Install the package:</para>
  38. <screen><userinput remap="install">make DESTDIR=$LFS install
  39. mv -v $LFS/usr/lib/libz.so.* $LFS/lib
  40. ln -sfv ../../lib/$(readlink $LFS/usr/lib/libz.so) $LFS/usr/lib/libz.so</userinput></screen>
  41. </sect2>
  42. <!-- - - - - - - - - - -->
  43. <!-- Multilib - 32bit -->
  44. <!-- - - - - - - - - - -->
  45. <sect2 arch="ml_32,ml_all" role="installation">
  46. <title>Installation of Zlib - 32bit</title>
  47. <para>Clean previous build:</para>
  48. <screen><userinput remap="pre">make distclean</userinput></screen>
  49. <para>Prepare Zlib for compilation:</para>
  50. <screen><userinput remap="configure">CC="gcc -m32" \
  51. ./configure --prefix=/usr \
  52. --libdir=&usr-lib-m32;</userinput></screen>
  53. <para>Compile the package:</para>
  54. <screen><userinput remap="make">make</userinput></screen>
  55. <para>Install the package:</para>
  56. <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
  57. cp -Rv DESTDIR&usr-lib-m32;/* $LFS&usr-lib-m32;
  58. rm -rf DESTDIR</userinput></screen>
  59. </sect2><!-- m32 -->
  60. <!-- - - - - - - - - - -->
  61. <!-- Multilib - x32bit -->
  62. <!-- - - - - - - - - - -->
  63. <sect2 arch="ml_x32,ml_all" role="installation">
  64. <title>Installation of Zlib - x32bit</title>
  65. <screen><userinput remap="pre">make distclean</userinput></screen>
  66. <para>Prepare Zlib for compilation:</para>
  67. <screen><userinput remap="configure">CC="gcc -mx32" \
  68. ./configure --prefix=/usr \
  69. --libdir=&usr-lib-mx32;</userinput></screen>
  70. <para>Compile the package:</para>
  71. <screen><userinput remap="make">make</userinput></screen>
  72. <para>Install the package:</para>
  73. <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
  74. cp -Rv DESTDIR&usr-lib-mx32;/* $LFS&usr-lib-mx32;
  75. rm -rf DESTDIR</userinput></screen>
  76. </sect2><!-- mx32 -->
  77. <sect2 role="content">
  78. <title/>
  79. <para>Details on this package are located in <xref linkend="contents-zlib" role="."/></para>
  80. </sect2>
  81. </sect1>