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

Last change on this file since a4733fb was bd83d71, checked in by Jim Gifford <clfs@…>, 16 years ago

Removed Zlib DESTDIR 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.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
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="a">Change the default optimization to Os</para>
29
30<screen os="b"><userinput>cp configure{,.orig}
31sed -e 's/-O3/-Os/g' configure.orig > configure</userinput></screen>
32
33 <para os="c">Prepare Zlib for compilation:</para>
34
35<screen os="d"><userinput>CC="${CC} ${BUILD}" ./configure --prefix=/usr --shared</userinput></screen>
36
37 <variablelist os="aa">
38 <title>The meaning of the configure options:</title>
39
40 <varlistentry os="aa1">
41 <term><parameter>--shared</parameter></term>
42 <listitem>
43 <para>Tells Zlib to build its shared library.</para>
44 </listitem>
45 </varlistentry>
46
47 </variablelist>
48
49 <para os="c">Compile the package:</para>
50
51<screen os="d"><userinput>make</userinput></screen>
52
53 <para os="e">Install the package:</para>
54
55<screen os="f"><userinput>make prefix=${CLFS}/usr install</userinput></screen>
56
57 <para os="g">The previous command installed a <filename
58 class="extension">.so</filename> file in <filename
59 class="directory">/usr/lib</filename>. We will move it into
60 <filename class="directory">/lib</filename> and then relink it
61 to <filename class="directory">/usr/lib</filename>:</para>
62
63<screen os="h"><userinput>mv -v ${CLFS}/usr/lib/libz.so.* ${CLFS}/lib
64ln -svf ../../lib/libz.so.1 ${CLFS}/usr/lib/libz.so</userinput></screen>
65
66 </sect2>
67
68 <sect2 id="contents-zlib" role="content">
69 <title>Contents of Zlib</title>
70
71 <segmentedlist>
72 <segtitle>Installed libraries</segtitle>
73
74 <seglistitem>
75 <seg>libz.[a,so]</seg>
76 </seglistitem>
77 </segmentedlist>
78
79 <variablelist>
80 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
81 <?dbfo list-presentation="list"?>
82 <?dbhtml list-presentation="table"?>
83
84 <varlistentry id="libz">
85 <term><filename class="libraryfile">libz</filename></term>
86 <listitem>
87 <para>Contains compression and decompression
88 functions used by some programs</para>
89 <indexterm zone="ch-system-zlib libz">
90 <primary sortas="c-libz">libz</primary>
91 </indexterm>
92 </listitem>
93 </varlistentry>
94
95 </variablelist>
96
97 </sect2>
98
99</sect1>
Note: See TracBrowser for help on using the repository browser.