source: chapter06/zlib.xml@ 06b8ac0

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.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 06b8ac0 was 2998724, checked in by Bruce Dubbs <bdubbs@…>, 14 years ago

Typo in spelling typo

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

  • Property mode set to 100644
File size: 3.3 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
[2998724]44 <para>First, fix a typo in the package header file:</para>
[3524efb]45
46<screen><userinput remap="pre">sed -i 's/ifdef _LARGEFILE64_SOURCE/ifndef _LARGEFILE64_SOURCE/' zlib.h</userinput></screen>
47
[85d68de]48 <para>Prepare Zlib for compilation:</para>
[4a8b9b3]49
[98a92531]50<screen><userinput remap="configure">CFLAGS='-mstackrealign -fPIC -O3' ./configure --prefix=/usr</userinput></screen>
51
52 <variablelist>
53 <title>The meaning of the new configure environment variable:</title>
54
55 <varlistentry>
56 <term><envar>CFLAGS='-mstackrealign -fPIC -O3'</envar></term>
57 <listitem>
58 <para>Setting CFLAGS overrides the default optimization in the
59 package to prevent some run time errors.</para>
60 </listitem>
61 </varlistentry>
62 </variablelist>
63
64
[4248b0e]65
[ddd5542]66 <para>Compile the package:</para>
[73aedd1d]67
[0445a3d]68<screen><userinput remap="make">make</userinput></screen>
[73aedd1d]69
[0445a3d]70 <para>To test the results, issue:</para>
71
72<screen><userinput remap="test">make check</userinput></screen>
[dfddb12]73
[85d68de]74 <para>Install the package:</para>
[ea2dfe7]75
76<screen><userinput remap="install">make install</userinput></screen>
77
[85d68de]78 <para>The shared library needs to be moved to
79 <filename class="directory">/lib</filename>, and as a result the
80 <filename class="extension">.so</filename> file in
81 <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
[ea2dfe7]82
[c7a2699]83<screen><userinput remap="install">mv -v /usr/lib/libz.so.* /lib
[ea2dfe7]84ln -sfv ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
85
[ddd5542]86 </sect2>
[24380c7]87
[ddd5542]88 <sect2 id="contents-zlib" role="content">
89 <title>Contents of Zlib</title>
[5888299]90
[ddd5542]91 <segmentedlist>
92 <segtitle>Installed libraries</segtitle>
[673b0d8]93
[ddd5542]94 <seglistitem>
[0090db5]95 <seg>libz.{a,so}</seg>
[ddd5542]96 </seglistitem>
97 </segmentedlist>
[81fd230]98
[ddd5542]99 <variablelist>
100 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
101 <?dbfo list-presentation="list"?>
102 <?dbhtml list-presentation="table"?>
[81fd230]103
[ddd5542]104 <varlistentry id="libz">
105 <term><filename class="libraryfile">libz</filename></term>
106 <listitem>
107 <para>Contains compression and decompression functions used by
108 some programs</para>
109 <indexterm zone="ch-system-zlib libz">
110 <primary sortas="c-libz">libz</primary>
111 </indexterm>
112 </listitem>
113 </varlistentry>
[673b0d8]114
[ddd5542]115 </variablelist>
[673b0d8]116
[ddd5542]117 </sect2>
[81fd230]118
[ddd5542]119</sect1>
Note: See TracBrowser for help on using the repository browser.