xz.xml 3.2 KB

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