source: chapter06/zlib.xml@ ee1a413

multilib-10.1
Last change on this file since ee1a413 was ee1a413, checked in by Thomas Trepl <thomas@…>, 5 years ago

Change profiling attribute to enable selection of m32 and/or mx32. Fixes #4452.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11571 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.2 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 <para>Prepare Zlib for compilation:</para>
45
46<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
47
48 <para>Compile the package:</para>
49
50<screen><userinput remap="make">make</userinput></screen>
51
52 <para>To test the results, issue:</para>
53
54<screen><userinput remap="test">make check</userinput></screen>
55
56 <para>Install the package:</para>
57
58<screen><userinput remap="install">make install</userinput></screen>
59
60 <para>The shared library needs to be moved to
61 <filename class="directory">/lib</filename>, and as a result the
62 <filename class="extension">.so</filename> file in
63 <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
64
65<screen><userinput remap="install">mv -v /usr/lib/libz.so.* /lib
66ln -sfv ../../lib/$(readlink /usr/lib/libz.so) /usr/lib/libz.so</userinput></screen>
67
68 </sect2>
69
70 <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ -->
71
72 <sect2 arch="ml_32,ml_all" role="installation">
73 <title>Installation of Zlib - 32-bit</title>
74
75 <para>Clean previous build:</para>
76
77<screen><userinput remap="pre">make distclean</userinput></screen>
78
79 <para>Prepare Zlib for compilation:</para>
80
81<!-- configure doesn't know option - -host=i686-pc-linux-gnu -->
82<screen><userinput remap="configure">CC="gcc -m32 -march=i686" \
83./configure --prefix=/usr \
84 --libdir=/usr/lib32</userinput></screen>
85
86 <para>Compile the package:</para>
87
88<screen><userinput remap="make">make</userinput></screen>
89
90 <para>Install the package:</para>
91
92<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
93cp -Rv DESTDIR/usr/lib32/* /usr/lib32
94rm -rf DESTDIR</userinput></screen>
95
96 </sect2>
97
98 <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ -->
99
100 <sect2 arch="ml_x32,ml_all" role="installation">
101 <title>Installation of Zlib - x32-bit</title>
102
103<screen><userinput remap="pre">make distclean</userinput></screen>
104
105 <para>Prepare Zlib for compilation:</para>
106
107<screen><userinput remap="configure">CC="gcc -mx32" \
108./configure --prefix=/usr \
109 --libdir=/usr/libx32</userinput></screen>
110
111 <para>Compile the package:</para>
112
113<screen><userinput remap="make">make</userinput></screen>
114
115 <para>Install the package:</para>
116
117<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
118cp -Rv DESTDIR/usr/libx32/* /usr/libx32
119rm -rf DESTDIR</userinput></screen>
120
121 </sect2>
122
123 <sect2 id="contents-zlib" role="content">
124 <title>Contents of Zlib</title>
125
126 <segmentedlist>
127 <segtitle>Installed libraries</segtitle>
128
129 <seglistitem>
130 <seg>libz.{a,so}</seg>
131 </seglistitem>
132 </segmentedlist>
133
134 <variablelist>
135 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
136 <?dbfo list-presentation="list"?>
137 <?dbhtml list-presentation="table"?>
138
139 <varlistentry id="libz">
140 <term><filename class="libraryfile">libz</filename></term>
141 <listitem>
142 <para>Contains compression and decompression functions used by
143 some programs</para>
144 <indexterm zone="ch-system-zlib libz">
145 <primary sortas="c-libz">libz</primary>
146 </indexterm>
147 </listitem>
148 </varlistentry>
149
150 </variablelist>
151
152 </sect2>
153
154</sect1>
Note: See TracBrowser for help on using the repository browser.