source: chapter05/xz.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: 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-xz" role="wrap">
9 <?dbhtml filename="xz.html"?>
10
11 <sect1info condition="script">
12 <productname>xz</productname>
13 <productnumber>&xz-version;</productnumber>
14 <address>&xz-url;</address>
15 </sect1info>
16
17 <title>Xz-&xz-version;</title>
18
19 <indexterm zone="ch-tools-xz">
20 <primary sortas="a-xz">Xz</primary>
21 <secondary>tools</secondary>
22 </indexterm>
23
24 <sect2 role="package">
25 <title/>
26
27 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
28 href="../chapter06/xz.xml"
29 xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
30
31 <segmentedlist>
32 <segtitle>&buildtime;</segtitle>
33 <segtitle>&diskspace;</segtitle>
34
35 <seglistitem>
36 <seg>&xz-ch5-sbu;</seg>
37 <seg>&xz-ch5-du;</seg>
38 </seglistitem>
39 </segmentedlist>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Xz</title>
45
46 <para>Prepare Xz for compilation:</para>
47
48<screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen>
49
50 <para>Compile the package:</para>
51
52<screen><userinput remap="make">make</userinput></screen>
53
54 <para>Compilation is now complete. As discussed earlier, running the test
55 suite is not mandatory for the temporary tools here in this chapter. To run
56 the Xz test suite anyway, issue the following command:</para>
57
58<screen><userinput remap="test">make check</userinput></screen>
59
60 <para>Install the package:</para>
61
62<screen><userinput remap="install">make install</userinput></screen>
63
64 </sect2>
65
66 <sect2 arch="ml_32,ml_all" role="installation">
67 <title>Installation of Xz - 32 bit</title>
68
69 <para>Prepare Xz for compilation:</para>
70
71<screen><userinput remap="configure">make distclean &amp;&amp;
72CC="${LFS_TGT}-gcc -m32" \
73./configure \
74 --prefix=/tools \
75 --libdir=/tools/lib32 \
76 --host="${LFS_TGT32}"</userinput></screen>
77
78 <para>Compile the package:</para>
79
80<screen><userinput remap="make">make</userinput></screen>
81
82 <para>To test the results, issue:</para>
83
84<screen><userinput remap="test">make check</userinput></screen>
85
86 <para>Install the package:</para>
87
88<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR_32 install &amp;&amp;
89cp -Rv DESTDIR_32/tools/lib32/* /tools/lib32</userinput></screen>
90
91 </sect2>
92
93 <sect2 arch="ml_x32,ml_all" role="installation">
94 <title>Installation of Xz - x32 bit</title>
95
96 <para>Repeat for the x32-ABI:</para>
97
98<screen><userinput remap="configure">make distclean &amp;&amp;
99CC="${LFS_TGT}-gcc -mx32" \
100./configure \
101 --prefix=/tools \
102 --libdir=/tools/libx32 \
103 --host="${LFS_TGTX32}"</userinput></screen>
104
105<screen><userinput remap="make">make</userinput></screen>
106
107<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR_x32 install &amp;&amp;
108cp -Rv DESTDIR_x32/tools/libx32/* /tools/libx32</userinput></screen>
109
110 </sect2>
111
112 <sect2 role="content">
113 <title/>
114
115 <para>Details on this package are located in
116 <xref linkend="contents-xz" role="."/></para>
117
118 </sect2>
119
120</sect1>
Note: See TracBrowser for help on using the repository browser.