source: chapter06/zlib.xml@ 5e06d04

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

Merge changes from trunk to multilib

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

  • Property mode set to 100644
File size: 3.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-tools-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-tools-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-fin-sbu;</seg>
35 <seg>&zlib-fin-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>Install the package:</para>
53
54<screen><userinput remap="install">make DESTDIR=$LFS install
55mv -v $LFS/usr/lib/libz.so.* $LFS/lib
56ln -sfv ../../lib/$(readlink $LFS/usr/lib/libz.so) $LFS/usr/lib/libz.so</userinput></screen>
57
58 </sect2>
59
60 <!-- - - - - - - - - - -->
61 <!-- Multilib - 32bit -->
62 <!-- - - - - - - - - - -->
63
64 <sect2 arch="ml_32,ml_all" role="installation">
65 <title>Installation of Zlib - 32bit</title>
66
67 <para>Clean previous build:</para>
68
69<screen><userinput remap="pre">make distclean</userinput></screen>
70
71 <para>Prepare Zlib for compilation:</para>
72
73<screen><userinput remap="configure">CC="gcc -m32" \
74./configure --prefix=/usr \
75 --libdir=&usr-lib-m32;</userinput></screen>
76
77 <para>Compile the package:</para>
78
79<screen><userinput remap="make">make</userinput></screen>
80
81 <para>Install the package:</para>
82
83<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
84cp -Rv DESTDIR&usr-lib-m32;/* $LFS&usr-lib-m32;
85rm -rf DESTDIR</userinput></screen>
86
87 </sect2><!-- m32 -->
88
89 <!-- - - - - - - - - - -->
90 <!-- Multilib - x32bit -->
91 <!-- - - - - - - - - - -->
92
93 <sect2 arch="ml_x32,ml_all" role="installation">
94 <title>Installation of Zlib - x32bit</title>
95
96<screen><userinput remap="pre">make distclean</userinput></screen>
97
98 <para>Prepare Zlib for compilation:</para>
99
100<screen><userinput remap="configure">CC="gcc -mx32" \
101./configure --prefix=/usr \
102 --libdir=&usr-lib-mx32;</userinput></screen>
103
104 <para>Compile the package:</para>
105
106<screen><userinput remap="make">make</userinput></screen>
107
108 <para>Install the package:</para>
109
110<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
111cp -Rv DESTDIR&usr-lib-mx32;/* $LFS&usr-lib-mx32;
112rm -rf DESTDIR</userinput></screen>
113
114 </sect2><!-- mx32 -->
115
116 <sect2 role="content">
117 <title/>
118 <para>Details on this package are located in <xref linkend="contents-zlib" role="."/></para>
119
120 </sect2>
121
122</sect1>
Note: See TracBrowser for help on using the repository browser.