[5102323] | 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">
|
---|
[4028929] | 9 | <?dbhtml filename="xz.html"?>
|
---|
[5102323] | 10 |
|
---|
| 11 | <sect1info condition="script">
|
---|
[4028929] | 12 | <productname>xz</productname>
|
---|
[5102323] | 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">
|
---|
[58675ce] | 20 | <primary sortas="a-xz">Xz</primary>
|
---|
[5102323] | 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"
|
---|
[dbc5ea6] | 28 | href="../chapter06/xz.xml"
|
---|
[5102323] | 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">
|
---|
[4028929] | 44 | <title>Installation of Xz</title>
|
---|
[5102323] | 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 |
|
---|
[080aa9f] | 62 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[5102323] | 63 |
|
---|
| 64 | </sect2>
|
---|
| 65 |
|
---|
[fd48baa] | 66 | <sect2 arch="ml_32,ml_all" role="installation">
|
---|
[b3f1ebb3] | 67 | <title>Installation of Xz - 32 bit</title>
|
---|
| 68 |
|
---|
| 69 | <para>Prepare Xz for compilation:</para>
|
---|
| 70 |
|
---|
| 71 | <screen><userinput remap="configure">make distclean &&
|
---|
| 72 | CC="${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 &&
|
---|
| 89 | cp -Rv DESTDIR_32/tools/lib32/* /tools/lib32</userinput></screen>
|
---|
| 90 |
|
---|
| 91 | </sect2>
|
---|
| 92 |
|
---|
[fd48baa] | 93 | <sect2 arch="ml_x32,ml_all" role="installation">
|
---|
[b3f1ebb3] | 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 &&
|
---|
| 99 | CC="${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 &&
|
---|
| 108 | cp -Rv DESTDIR_x32/tools/libx32/* /tools/libx32</userinput></screen>
|
---|
| 109 |
|
---|
| 110 | </sect2>
|
---|
| 111 |
|
---|
[5102323] | 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>
|
---|