source: clfs-sysroot/BOOK/final-system/common/zlib.xml@ b797f97

Last change on this file since b797f97 was 12e6567, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Added a sysroot wrapper.
Updated the build variables section of the book, each package uses its own.

  • Property mode set to 100644
File size: 2.7 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 &env-target;
26
27 <sect2 role="installation">
28 <title>Installation of Zlib</title>
29
30 <para os="p1">This patch will add -fPIC to our build and allow us to build
31 a static and shared library at the same time:</para>
32
33<screen os="p2"><userinput>patch -Np1 -i ../&zlib-fpic-patch;</userinput></screen>
34
35 <para os="a">Prepare Zlib for compilation:</para>
36
37<screen os="b"><userinput>./configure --prefix=/usr --shared</userinput></screen>
38
39 <para os="c">Compile the package:</para>
40
41<screen os="d"><userinput>make AR="${AR} rc"</userinput></screen>
42
43 <para os="e">Install the package:</para>
44
45<screen os="f"><userinput>make prefix=${CLFS}/usr install</userinput></screen>
46
47 <para os="g">The previous command installed a <filename
48 class="extension">.so</filename> file in <filename
49 class="directory">${CLFS}/usr/lib</filename>. We will move it into
50 <filename class="directory">${CLFS}/lib</filename> and then relink it
51 to <filename class="directory">${CLFS}/usr/lib</filename>:</para>
52
53<screen os="h"><userinput>mv -v ${CLFS}/usr/lib/libz.so.* ${CLFS}/lib
54ln -sfv ../../lib/libz.so.1 ${CLFS}/usr/lib/libz.so</userinput></screen>
55
56 <para os="i">Now we fix the permissions on the static library:</para>
57
58<screen os="j"><userinput>chmod -v 644 ${CLFS}/usr/lib/libz.a</userinput></screen>
59
60 </sect2>
61
62 <sect2 id="contents-zlib" role="content">
63 <title>Contents of Zlib</title>
64
65 <segmentedlist>
66 <segtitle>Installed libraries</segtitle>
67
68 <seglistitem>
69 <seg>libz.[a,so]</seg>
70 </seglistitem>
71 </segmentedlist>
72
73 <variablelist>
74 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
75 <?dbfo list-presentation="list"?>
76 <?dbhtml list-presentation="table"?>
77
78 <varlistentry id="libz">
79 <term><filename class="libraryfile">libz</filename></term>
80 <listitem>
81 <para>Contains compression and decompression
82 functions used by some programs</para>
83 <indexterm zone="ch-system-zlib libz">
84 <primary sortas="c-libz">libz</primary>
85 </indexterm>
86 </listitem>
87 </varlistentry>
88
89 </variablelist>
90
91 </sect2>
92
93</sect1>
Note: See TracBrowser for help on using the repository browser.