source: BOOK/final-system/common/zlib.xml@ 8f3d17f

Last change on this file since 8f3d17f was b6831b6, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Update the LDFLAGS in the final-system between the installation
of EGLIBC and the installation of GCC. This should fix build errors
in a few odd situations, but it is also correct now. Before /usr/lib*
was not being set in rpath-link, just /lib*.

  • Property mode set to 100644
File size: 2.5 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="a">Prepare Zlib for compilation:</para>
[3f8be484]29
[b6831b6]30<screen os="b"><userinput>CC="gcc -isystem /usr/include" \
31CXX="g++ -isystem /usr/include" \
32LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" \
33 ./configure --prefix=/usr</userinput></screen>
[3f8be484]34
[27178ae]35 <para os="c">Compile the package:</para>
[3f8be484]36
[27178ae]37<screen os="d"><userinput>make</userinput></screen>
38
39 <para os="e">To test the results, issue:
[3f8be484]40 <userinput>make check</userinput>.</para>
41
[1322a63]42 <para os="f">Install the package:</para>
[3f8be484]43
[27178ae]44<screen os="g"><userinput>make install</userinput></screen>
[3f8be484]45
[c4534a5]46 <para os="h">The previous command installed two <filename
47 class="extension">.so</filename> files into <filename
[c2f6972]48 class="directory">/usr/lib</filename>. We will move it into
[27178ae]49 <filename class="directory">/lib</filename> and then relink it
50 to <filename class="directory">/usr/lib</filename>:</para>
[3f8be484]51
[94e6142]52<screen os="i"><userinput>mv -v /usr/lib/libz.so.* /lib
53ln -svf ../../lib/libz.so.1 /usr/lib/libz.so</userinput></screen>
[3f8be484]54
55 </sect2>
56
57 <sect2 id="contents-zlib" role="content">
58 <title>Contents of Zlib</title>
59
60 <segmentedlist>
61 <segtitle>Installed libraries</segtitle>
62
63 <seglistitem>
64 <seg>libz.[a,so]</seg>
65 </seglistitem>
66 </segmentedlist>
67
68 <variablelist>
69 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
70 <?dbfo list-presentation="list"?>
71 <?dbhtml list-presentation="table"?>
72
73 <varlistentry id="libz">
74 <term><filename class="libraryfile">libz</filename></term>
75 <listitem>
76 <para>Contains compression and decompression
77 functions used by some programs</para>
78 <indexterm zone="ch-system-zlib libz">
79 <primary sortas="c-libz">libz</primary>
80 </indexterm>
81 </listitem>
82 </varlistentry>
83
84 </variablelist>
85
86 </sect2>
87
88</sect1>
Note: See TracBrowser for help on using the repository browser.