[02095ae] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[c439b8a] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[02095ae] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-zlib" role="wrap">
|
---|
| 9 | <?dbhtml filename="zlib.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Zlib-&zlib-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-zlib">
|
---|
| 14 | <primary sortas="a-Zlib">Zlib</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Zlib package contains compression and decompression routines
|
---|
| 21 | used by some programs.</para>
|
---|
| 22 |
|
---|
| 23 | </sect2>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="installation">
|
---|
| 26 | <title>Installation of Zlib</title>
|
---|
| 27 |
|
---|
| 28 | <para os="p1">This patch will add -fPIC to our build and allow us to build
|
---|
| 29 | a static and shared library at the same time:</para>
|
---|
| 30 |
|
---|
| 31 | <screen os="p2"><userinput>patch -Np1 -i ../&zlib-fpic-patch;</userinput></screen>
|
---|
| 32 |
|
---|
| 33 | <para os="a">Prepare Zlib for compilation:</para>
|
---|
| 34 |
|
---|
| 35 | <screen os="b"><userinput>./configure --prefix=/usr --shared</userinput></screen>
|
---|
| 36 |
|
---|
| 37 | <para os="c">Compile the package:</para>
|
---|
| 38 |
|
---|
[124ebe0] | 39 | <screen os="d"><userinput>make AR="${AR} rc"</userinput></screen>
|
---|
[02095ae] | 40 |
|
---|
[41ac96d] | 41 | <para os="e">Install the package:</para>
|
---|
[02095ae] | 42 |
|
---|
[586feb7] | 43 | <screen os="f"><userinput>make prefix=${CLFS}/usr install</userinput></screen>
|
---|
[02095ae] | 44 |
|
---|
| 45 | <para os="g">The previous command installed a <filename
|
---|
| 46 | class="extension">.so</filename> file in <filename
|
---|
[de77ba6] | 47 | class="directory">${CLFS}/usr/lib</filename>. We will move it into
|
---|
| 48 | <filename class="directory">${CLFS}/lib</filename> and then relink it
|
---|
| 49 | to <filename class="directory">${CLFS}/usr/lib</filename>:</para>
|
---|
[02095ae] | 50 |
|
---|
[586feb7] | 51 | <screen os="h"><userinput>mv -v ${CLFS}/usr/lib/libz.so.* ${CLFS}/lib
|
---|
[394cdeb] | 52 | ln -sfv ../../lib/libz.so.1 ${CLFS}/usr/lib/libz.so</userinput></screen>
|
---|
[02095ae] | 53 |
|
---|
| 54 | <para os="i">Now we fix the permissions on the static library:</para>
|
---|
| 55 |
|
---|
[586feb7] | 56 | <screen os="j"><userinput>chmod -v 644 ${CLFS}/usr/lib/libz.a</userinput></screen>
|
---|
[02095ae] | 57 |
|
---|
| 58 | </sect2>
|
---|
| 59 |
|
---|
| 60 | <sect2 id="contents-zlib" role="content">
|
---|
| 61 | <title>Contents of Zlib</title>
|
---|
| 62 |
|
---|
| 63 | <segmentedlist>
|
---|
| 64 | <segtitle>Installed libraries</segtitle>
|
---|
| 65 |
|
---|
| 66 | <seglistitem>
|
---|
| 67 | <seg>libz.[a,so]</seg>
|
---|
| 68 | </seglistitem>
|
---|
| 69 | </segmentedlist>
|
---|
| 70 |
|
---|
| 71 | <variablelist>
|
---|
| 72 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 73 | <?dbfo list-presentation="list"?>
|
---|
| 74 | <?dbhtml list-presentation="table"?>
|
---|
| 75 |
|
---|
| 76 | <varlistentry id="libz">
|
---|
| 77 | <term><filename class="libraryfile">libz</filename></term>
|
---|
| 78 | <listitem>
|
---|
| 79 | <para>Contains compression and decompression
|
---|
| 80 | functions used by some programs</para>
|
---|
| 81 | <indexterm zone="ch-system-zlib libz">
|
---|
| 82 | <primary sortas="c-libz">libz</primary>
|
---|
| 83 | </indexterm>
|
---|
| 84 | </listitem>
|
---|
| 85 | </varlistentry>
|
---|
| 86 |
|
---|
| 87 | </variablelist>
|
---|
| 88 |
|
---|
| 89 | </sect2>
|
---|
| 90 |
|
---|
| 91 | </sect1>
|
---|