libtool.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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-system-libtool" role="wrap">
  8. <?dbhtml filename="libtool.html"?>
  9. <sect1info condition="script">
  10. <productname>libtool</productname>
  11. <productnumber>&libtool-version;</productnumber>
  12. <address>&libtool-url;</address>
  13. </sect1info>
  14. <title>Libtool-&libtool-version;</title>
  15. <indexterm zone="ch-system-libtool">
  16. <primary sortas="a-Libtool">Libtool</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Libtool package contains the GNU generic library support script.
  21. It wraps the complexity of using shared libraries in a consistent, portable
  22. interface.</para>
  23. <segmentedlist>
  24. <segtitle>&buildtime;</segtitle>
  25. <segtitle>&diskspace;</segtitle>
  26. <seglistitem>
  27. <seg>&libtool-ch6-sbu;</seg>
  28. <seg>&libtool-ch6-du;</seg>
  29. </seglistitem>
  30. </segmentedlist>
  31. </sect2>
  32. <sect2 role="installation">
  33. <title>Installation of Libtool</title>
  34. <para>Prepare Libtool for compilation:</para>
  35. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  36. <para>Compile the package:</para>
  37. <screen><userinput remap="make">make</userinput></screen>
  38. <para>To test the results<!--(about 11.0 SBU)-->, issue:</para>
  39. <screen><userinput remap="test">make check</userinput></screen>
  40. <note><para>The test time for libtool can be reduced significantly on a
  41. system with multiple cores. To do this, append
  42. <command>TESTSUITEFLAGS=-j&lt;N&gt;</command> to the line above. For
  43. instance, using -j4 can reduce the test time by over 60
  44. percent.</para></note>
  45. <para>Five tests are known to fail in the LFS build environment due
  46. to a circular dependency, but all tests pass if rechecked after
  47. automake is installed.</para>
  48. <para>Install the package:</para>
  49. <screen><userinput remap="install">make install</userinput></screen>
  50. </sect2>
  51. <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ -->
  52. <sect2 arch="ml_32,ml_all" role="installation">
  53. <title>Installation of Libtool - 32-bit</title>
  54. <para>Clean previous build:</para>
  55. <screen><userinput remap="pre">make distclean</userinput></screen>
  56. <para>Prepare Libtool for compilation:</para>
  57. <screen><userinput remap="configure">CC="gcc -m32" ./configure \
  58. --prefix=/usr \
  59. --libdir=/usr/lib32 \
  60. --host=i686-pc-linux-gnu</userinput></screen>
  61. <para>Compile the package:</para>
  62. <screen><userinput remap="make">make</userinput></screen>
  63. <para>Install the package:</para>
  64. <screen><userinput remap="install">make DESTDIR=$(pwd)/DESTDIR install
  65. cp -Rv DESTDIR/usr/lib32/* /usr/lib32
  66. rm -rf DESTDIR</userinput></screen>
  67. </sect2>
  68. <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ -->
  69. <sect2 arch="ml_x32,ml_all" role="installation">
  70. <title>Installation of Libtool - x32-bit</title>
  71. <para>Clean previous build:</para>
  72. <screen><userinput remap="pre">make distclean</userinput></screen>
  73. <para>Prepare Libtool for compilation:</para>
  74. <screen><userinput remap="configure">CC="gcc -mx32" ./configure \
  75. --prefix=/usr \
  76. --libdir=/usr/libx32 \
  77. --host=x86_64-pc-linux-gnux32</userinput></screen>
  78. <para>Compile the package:</para>
  79. <screen><userinput remap="make">make</userinput></screen>
  80. <para>Install the package:</para>
  81. <screen><userinput remap="install">make DESTDIR=$(pwd)/DESTDIR install
  82. cp -Rv DESTDIR/usr/libx32/* /usr/libx32
  83. rm -rf DESTDIR</userinput></screen>
  84. </sect2>
  85. <sect2 id="contents-libtool" role="content">
  86. <title>Contents of Libtool</title>
  87. <segmentedlist>
  88. <segtitle>Installed programs</segtitle>
  89. <segtitle>Installed libraries</segtitle>
  90. <segtitle>Installed directories</segtitle>
  91. <seglistitem>
  92. <seg>libtool and libtoolize</seg>
  93. <seg>libltdl.so</seg>
  94. <seg>/usr/include/libltdl and /usr/share/libtool</seg>
  95. </seglistitem>
  96. </segmentedlist>
  97. <variablelist>
  98. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  99. <?dbfo list-presentation="list"?>
  100. <?dbhtml list-presentation="table"?>
  101. <varlistentry id="libtool">
  102. <term><command>libtool</command></term>
  103. <listitem>
  104. <para>Provides generalized library-building support services</para>
  105. <indexterm zone="ch-system-libtool libtool">
  106. <primary sortas="b-libtool">libtool</primary>
  107. </indexterm>
  108. </listitem>
  109. </varlistentry>
  110. <varlistentry id="libtoolize">
  111. <term><command>libtoolize</command></term>
  112. <listitem>
  113. <para>Provides a standard way to add <command>libtool</command>
  114. support to a package</para>
  115. <indexterm zone="ch-system-libtool libtoolize">
  116. <primary sortas="b-libtoolize">libtoolize</primary>
  117. </indexterm>
  118. </listitem>
  119. </varlistentry>
  120. <varlistentry id="libltdl">
  121. <term><filename class="libraryfile">libltdl</filename></term>
  122. <listitem>
  123. <para>Hides the various difficulties of dlopening libraries</para>
  124. <indexterm zone="ch-system-libtool libltdl">
  125. <primary sortas="c-libltdl">libltdl</primary>
  126. </indexterm>
  127. </listitem>
  128. </varlistentry>
  129. </variablelist>
  130. </sect2>
  131. </sect1>