source: chapter05/zlib.xml@ b3f1ebb3

ml-11.0 multilib
Last change on this file since b3f1ebb3 was b3f1ebb3, checked in by Xℹ Ruoyao <xry111@…>, 3 years ago

First apply of multilib-patch of April 1st, 2019

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

  • Property mode set to 100644
File size: 2.8 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 arch="multilib" 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-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=/tools</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 </sect2>
61
62 <sect2 arch="multilib" role="installation">
63 <title>Installation of Zlib - 32 bit</title>
64
65 <para>Prepare Zlib for compilation:</para>
66
67<screen><userinput remap="configure">make distclean &amp;&amp;
68CC="${LFS_TGT}-gcc -m32" ./configure --prefix=/tools --libdir=/tools/lib32</userinput></screen>
69
70 <para>Compile the package:</para>
71
72<screen><userinput remap="make">make</userinput></screen>
73
74 <para>To test the results, issue:</para>
75
76<screen><userinput remap="test">make check</userinput></screen>
77
78 <para>Install the package:</para>
79
80<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR_32 install &amp;&amp;
81cp -Rv DESTDIR_32/tools/lib32/* /tools/lib32</userinput></screen>
82
83 </sect2>
84
85 <sect2 arch="multilib" role="installation">
86 <title>Installation of Zlib - x32 bit</title>
87
88 <para>Repeat for the x32-ABI:</para>
89
90<screen><userinput remap="configure">make distclean &amp;&amp;
91CC="${LFS_TGT}-gcc -mx32" ./configure --prefix=/tools --libdir=/tools/libx32</userinput></screen>
92
93<screen><userinput remap="make">make</userinput></screen>
94
95<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR_x32 install &amp;&amp;
96cp -Rv DESTDIR_x32/tools/libx32/* /tools/libx32</userinput></screen>
97
98 </sect2>
99
100</sect1>
101
Note: See TracBrowser for help on using the repository browser.