source: BOOK/final-system/common/zlib.xml@ 8799f00

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8799f00 was 4173cd9, checked in by Jim Gifford <clfs@…>, 16 years ago

Updates to Toolchain Fixes.

  • Property mode set to 100644
File size: 2.8 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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 <sect2 role="installation">
26 <title>Installation of Zlib</title>
27
[27178ae]28 <para os="p1">This patch will add -fPIC to our build and allow us to build
29 a static and shared library at the same time:</para>
[3f8be484]30
[27178ae]31<screen os="p2"><userinput>patch -Np1 -i ../&zlib-fpic-patch;</userinput></screen>
[3f8be484]32
[27178ae]33 <para os="a">Prepare Zlib for compilation:</para>
[3f8be484]34
[4173cd9]35<screen os="b"><userinput>CC="gcc -isystem /usr/include" CXX="g++ -isystem /usr/include" \
36 LDFLAGS="-Wl,-rpath-link,/lib" ./configure --prefix=/usr --shared</userinput></screen>
[3f8be484]37
[27178ae]38 <para os="c">Compile the package:</para>
[3f8be484]39
[27178ae]40<screen os="d"><userinput>make</userinput></screen>
41
42 <para os="e">To test the results, issue:
[3f8be484]43 <userinput>make check</userinput>.</para>
44
[1322a63]45 <para os="f">Install the package:</para>
[3f8be484]46
[27178ae]47<screen os="g"><userinput>make install</userinput></screen>
[3f8be484]48
[c4534a5]49 <para os="h">The previous command installed two <filename
50 class="extension">.so</filename> files into <filename
[c2f6972]51 class="directory">/usr/lib</filename>. We will move it into
[27178ae]52 <filename class="directory">/lib</filename> and then relink it
53 to <filename class="directory">/usr/lib</filename>:</para>
[3f8be484]54
[94e6142]55<screen os="i"><userinput>mv -v /usr/lib/libz.so.* /lib
56ln -svf ../../lib/libz.so.1 /usr/lib/libz.so</userinput></screen>
[3f8be484]57
[27178ae]58 <para os="j">Now we fix the permissions on the static library:</para>
[3f8be484]59
[94e6142]60<screen os="k"><userinput>chmod -v 644 /usr/lib/libz.a</userinput></screen>
[3f8be484]61
62 </sect2>
63
64 <sect2 id="contents-zlib" role="content">
65 <title>Contents of Zlib</title>
66
67 <segmentedlist>
68 <segtitle>Installed libraries</segtitle>
69
70 <seglistitem>
71 <seg>libz.[a,so]</seg>
72 </seglistitem>
73 </segmentedlist>
74
75 <variablelist>
76 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
77 <?dbfo list-presentation="list"?>
78 <?dbhtml list-presentation="table"?>
79
80 <varlistentry id="libz">
81 <term><filename class="libraryfile">libz</filename></term>
82 <listitem>
83 <para>Contains compression and decompression
84 functions used by some programs</para>
85 <indexterm zone="ch-system-zlib libz">
86 <primary sortas="c-libz">libz</primary>
87 </indexterm>
88 </listitem>
89 </varlistentry>
90
91 </variablelist>
92
93 </sect2>
94
95</sect1>
Note: See TracBrowser for help on using the repository browser.