source: chapter06/zlib.xml@ 49ae4c6

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 49ae4c6 was e4a5635, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Replaced "<" by "less than".

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7612 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.3 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 used by
21 some programs.</para>
22
23 <segmentedlist>
24 <segtitle>&buildtime;</segtitle>
25 <segtitle>&diskspace;</segtitle>
26
27 <seglistitem>
28 <seg>&zlib-ch6-sbu;</seg>
29 <seg>&zlib-ch6-du;</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 </sect2>
34
35 <sect2 role="installation">
36 <title>Installation of Zlib</title>
37
38 <note>
39 <para>Zlib is known to build its shared library incorrectly if
40 <envar>CFLAGS</envar> is specified in the environment. If using
41 a specified <envar>CFLAGS</envar> variable, be sure to add the
42 <parameter>-fPIC</parameter> directive to the <envar>CFLAGS</envar>
43 variable for the duration of the configure command below, then
44 remove it afterwards.</para>
45 </note>
46
47 <para>Prepare Zlib for compilation:</para>
48
49<screen><userinput>./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>
50
51 <para>Compile the package:</para>
52
53<screen><userinput>make</userinput></screen>
54
55 <para>To test the results, issue:
56 <userinput>make check</userinput>.</para>
57
58 <para>Install the shared library:</para>
59
60<screen><userinput>make install</userinput></screen>
61
62 <para>The previous command installed a <filename
63 class="extension">.so</filename> file in <filename
64 class="directory">/lib</filename>. We will remove it and relink it into
65 <filename class="directory">/usr/lib</filename>:</para>
66
67<screen><userinput>rm -v /lib/libz.so
68ln -sfv ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
69
70 <para>Build the static library:</para>
71
72<screen><userinput>make clean
73./configure --prefix=/usr
74make</userinput></screen>
75
76 <para>To test the results again, issue:
77 <userinput>make check</userinput>.</para>
78
79 <para>Install the static library:</para>
80
81<screen><userinput>make install</userinput></screen>
82
83 <para>Fix the permissions on the static library:</para>
84
85<screen><userinput>chmod -v 644 /usr/lib/libz.a</userinput></screen>
86
87 </sect2>
88
89 <sect2 id="contents-zlib" role="content">
90 <title>Contents of Zlib</title>
91
92 <segmentedlist>
93 <segtitle>Installed libraries</segtitle>
94
95 <seglistitem>
96 <seg>libz.{a,so}</seg>
97 </seglistitem>
98 </segmentedlist>
99
100 <variablelist>
101 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
102 <?dbfo list-presentation="list"?>
103 <?dbhtml list-presentation="table"?>
104
105 <varlistentry id="libz">
106 <term><filename class="libraryfile">libz</filename></term>
107 <listitem>
108 <para>Contains compression and decompression functions used by
109 some programs</para>
110 <indexterm zone="ch-system-zlib libz">
111 <primary sortas="c-libz">libz</primary>
112 </indexterm>
113 </listitem>
114 </varlistentry>
115
116 </variablelist>
117
118 </sect2>
119
120</sect1>
Note: See TracBrowser for help on using the repository browser.