source: chapter06/zlib.xml@ 13fe71e

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.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 13fe71e was fddfb52, checked in by Bruce Dubbs <bdubbs@…>, 15 years ago

Fix permissions for zlib static library

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

  • Property mode set to 100644
File size: 3.1 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 <sect1info condition="script">
12 <productname>zlib</productname>
13 <productnumber>&zlib-version;</productnumber>
14 <address>&zlib-url;</address>
15 </sect1info>
16
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/>
25
26 <para>The Zlib package contains compression and decompression routines used by
27 some programs.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&zlib-ch6-sbu;</seg>
35 <seg>&zlib-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
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>Modify the build scripts to ensure compilation with position independent
54 code and allow building both static and dynamic libraries in one step:</para>
55
56<screen><userinput remap="configure">patch -Np1 -i ../&zlib-fpic-patch;</userinput></screen>
57
58 <para>Prepare Zlib for compilation:</para>
59
60<screen><userinput remap="configure">./configure --prefix=/usr --shared</userinput></screen>
61
62 <para>Compile the package:</para>
63
64<screen><userinput remap="make">make</userinput></screen>
65
66 <para>To test the results, issue:</para>
67
68<screen><userinput remap="test">make check</userinput></screen>
69
70 <para>Install the libraries:</para>
71
72<screen><userinput remap="install">make install</userinput></screen>
73
74 <para>Finally, fix permissions on the static library:</para>
75
76<screen><userinput remap="install">chmod 0644 /usr/lib/libz.a</userinput></screen>
77
78 </sect2>
79
80 <sect2 id="contents-zlib" role="content">
81 <title>Contents of Zlib</title>
82
83 <segmentedlist>
84 <segtitle>Installed libraries</segtitle>
85
86 <seglistitem>
87 <seg>libz.{a,so}</seg>
88 </seglistitem>
89 </segmentedlist>
90
91 <variablelist>
92 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
93 <?dbfo list-presentation="list"?>
94 <?dbhtml list-presentation="table"?>
95
96 <varlistentry id="libz">
97 <term><filename class="libraryfile">libz</filename></term>
98 <listitem>
99 <para>Contains compression and decompression functions used by
100 some programs</para>
101 <indexterm zone="ch-system-zlib libz">
102 <primary sortas="c-libz">libz</primary>
103 </indexterm>
104 </listitem>
105 </varlistentry>
106
107 </variablelist>
108
109 </sect2>
110
111</sect1>
Note: See TracBrowser for help on using the repository browser.