source: clfs-embedded/BOOK/final-system/common/zlib.xml@ d841e12

Last change on this file since d841e12 was 12fe1e5, checked in by Jim Gifford <clfs@…>, 18 years ago

Removed -fPIC patch

  • Property mode set to 100644
File size: 2.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
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 the ability to use DESTDIR:</para>
29
30<screen os="p2"><userinput>patch -Np1 -i ../&zlib-destdir-patch;</userinput></screen>
31
32 <para os="a">Prepare Zlib for compilation:</para>
33
34<screen os="b"><userinput>CC="${CC} ${BUILD}" ./configure --prefix=/usr --shared</userinput></screen>
35
36 <variablelist os="aa">
37 <title>The meaning of the configure options:</title>
38
39 <varlistentry os="aa1">
40 <term><parameter>--shared</parameter></term>
41 <listitem>
42 <para>Tells Zlib to build its shared library.</para>
43 </listitem>
44 </varlistentry>
45
46 </variablelist>
47
48 <para os="c">Compile the package:</para>
49
50<screen os="d"><userinput>make</userinput></screen>
51
52 <para os="e">Install the package:</para>
53
54<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
55
56 <para os="g">The previous command installed a <filename
57 class="extension">.so</filename> file in <filename
58 class="directory">/usr/lib</filename>. We will move it into
59 <filename class="directory">/lib</filename> and then relink it
60 to <filename class="directory">/usr/lib</filename>:</para>
61
62<screen os="h"><userinput>mv -v ${CLFS}/usr/lib/libz.so.* ${CLFS}/lib
63ln -svf ../../lib/libz.so.1 ${CLFS}/usr/lib/libz.so</userinput></screen>
64
65 </sect2>
66
67 <sect2 id="contents-zlib" role="content">
68 <title>Contents of Zlib</title>
69
70 <segmentedlist>
71 <segtitle>Installed libraries</segtitle>
72
73 <seglistitem>
74 <seg>libz.[a,so]</seg>
75 </seglistitem>
76 </segmentedlist>
77
78 <variablelist>
79 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
80 <?dbfo list-presentation="list"?>
81 <?dbhtml list-presentation="table"?>
82
83 <varlistentry id="libz">
84 <term><filename class="libraryfile">libz</filename></term>
85 <listitem>
86 <para>Contains compression and decompression
87 functions used by some programs</para>
88 <indexterm zone="ch-system-zlib libz">
89 <primary sortas="c-libz">libz</primary>
90 </indexterm>
91 </listitem>
92 </varlistentry>
93
94 </variablelist>
95
96 </sect2>
97
98</sect1>
Note: See TracBrowser for help on using the repository browser.