source: chapter06/zlib.xml@ 232aa73

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 12.2 12.2-rc1 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/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 232aa73 was e747759, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Added sect1info blocks to packages pages.

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

  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[ddd5542]7
[81fd230]8<sect1 id="ch-system-zlib" role="wrap">
[ddd5542]9 <?dbhtml filename="zlib.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>zlib</productname>
13 <productnumber>&zlib-version;</productnumber>
14 <address>&zlib-url;</address>
15 </sect1info>
16
[ddd5542]17 <title>Zlib-&zlib-version;</title>
18
19 <indexterm zone="ch-system-zlib">
20 <primary sortas="a-Zlib">Zlib</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
[24380c7]25
[ddd5542]26 <para>The Zlib package contains compression and decompression routines used by
27 some programs.</para>
[673b0d8]28
[ddd5542]29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
[5888299]32
[ddd5542]33 <seglistitem>
[e4a5635]34 <seg>&zlib-ch6-sbu;</seg>
35 <seg>&zlib-ch6-du;</seg>
[ddd5542]36 </seglistitem>
37 </segmentedlist>
[673b0d8]38
[ddd5542]39 </sect2>
[81fd230]40
[ddd5542]41 <sect2 role="installation">
42 <title>Installation of Zlib</title>
43
44 <note>
45 <para>Zlib is known to build its shared library incorrectly if
46 <envar>CFLAGS</envar> is specified in the environment. If using
47 a specified <envar>CFLAGS</envar> variable, be sure to add the
48 <parameter>-fPIC</parameter> directive to the <envar>CFLAGS</envar>
49 variable for the duration of the configure command below, then
50 remove it afterwards.</para>
51 </note>
52
53 <para>Prepare Zlib for compilation:</para>
[4248b0e]54
[5091251]55<screen><userinput>./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>
[4248b0e]56
[ddd5542]57 <para>Compile the package:</para>
[73aedd1d]58
59<screen><userinput>make</userinput></screen>
60
[ddd5542]61 <para>To test the results, issue:
62 <userinput>make check</userinput>.</para>
[dfddb12]63
[ddd5542]64 <para>Install the shared library:</para>
[73aedd1d]65
66<screen><userinput>make install</userinput></screen>
67
[ddd5542]68 <para>The previous command installed a <filename
69 class="extension">.so</filename> file in <filename
70 class="directory">/lib</filename>. We will remove it and relink it into
71 <filename class="directory">/usr/lib</filename>:</para>
[7111666]72
[5998892]73<screen><userinput>rm -v /lib/libz.so
74ln -sfv ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
[7111666]75
[ddd5542]76 <para>Build the static library:</para>
[8ad7980]77
[73aedd1d]78<screen><userinput>make clean
79./configure --prefix=/usr
80make</userinput></screen>
81
[ddd5542]82 <para>To test the results again, issue:
83 <userinput>make check</userinput>.</para>
[73aedd1d]84
[ddd5542]85 <para>Install the static library:</para>
[73aedd1d]86
87<screen><userinput>make install</userinput></screen>
88
[ddd5542]89 <para>Fix the permissions on the static library:</para>
[84e4cae]90
[5998892]91<screen><userinput>chmod -v 644 /usr/lib/libz.a</userinput></screen>
[84e4cae]92
[ddd5542]93 </sect2>
[24380c7]94
[ddd5542]95 <sect2 id="contents-zlib" role="content">
96 <title>Contents of Zlib</title>
[5888299]97
[ddd5542]98 <segmentedlist>
99 <segtitle>Installed libraries</segtitle>
[673b0d8]100
[ddd5542]101 <seglistitem>
[0090db5]102 <seg>libz.{a,so}</seg>
[ddd5542]103 </seglistitem>
104 </segmentedlist>
[81fd230]105
[ddd5542]106 <variablelist>
107 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
108 <?dbfo list-presentation="list"?>
109 <?dbhtml list-presentation="table"?>
[81fd230]110
[ddd5542]111 <varlistentry id="libz">
112 <term><filename class="libraryfile">libz</filename></term>
113 <listitem>
114 <para>Contains compression and decompression functions used by
115 some programs</para>
116 <indexterm zone="ch-system-zlib libz">
117 <primary sortas="c-libz">libz</primary>
118 </indexterm>
119 </listitem>
120 </varlistentry>
[673b0d8]121
[ddd5542]122 </variablelist>
[673b0d8]123
[ddd5542]124 </sect2>
[81fd230]125
[ddd5542]126</sect1>
Note: See TracBrowser for help on using the repository browser.