libtool.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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-fin-sbu;</seg>
  28. <seg>&libtool-fin-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. <!-- dev: - -disable-static works but causes additional test failures
  51. so we manually remove the static library -->
  52. <para>Remove an useless static library:</para>
  53. <screen><userinput remap="install">rm -fv /usr/lib/libltdl.a</userinput></screen>
  54. </sect2>
  55. <!-- - - - - - - - - - -->
  56. <!-- Multilib - 32bit -->
  57. <!-- - - - - - - - - - -->
  58. <sect2 arch="ml_32,ml_all" role="installation">
  59. <title>Installation of Libtool - 32bit</title>
  60. <para>Clean previous build:</para>
  61. <screen><userinput remap="pre">make distclean</userinput></screen>
  62. <para>Prepare Libtool for compilation:</para>
  63. <screen><userinput remap="configure">CC="gcc -m32" ./configure \
  64. --prefix=/usr \
  65. --libdir=&usr-lib-m32; \
  66. --host=i686-pc-linux-gnu</userinput></screen>
  67. <para>Compile the package:</para>
  68. <screen><userinput remap="make">make</userinput></screen>
  69. <para>Install the package:</para>
  70. <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
  71. cp -Rv DESTDIR&usr-lib-m32;/* &usr-lib-m32;
  72. rm -rf DESTDIR</userinput></screen>
  73. </sect2><!-- m32 -->
  74. <!-- - - - - - - - - - -->
  75. <!-- Multilib - x32bit -->
  76. <!-- - - - - - - - - - -->
  77. <sect2 arch="ml_x32,ml_all" role="installation">
  78. <title>Installation of Libtool - x32bit</title>
  79. <para>Clean previous build:</para>
  80. <screen><userinput remap="pre">make distclean</userinput></screen>
  81. <para>Prepare Libtool for compilation:</para>
  82. <screen><userinput remap="configure">CC="gcc -mx32" ./configure \
  83. --prefix=/usr \
  84. --libdir=&usr-lib-mx32; \
  85. --host=x86_64-pc-linux-gnux32</userinput></screen>
  86. <para>Compile the package:</para>
  87. <screen><userinput remap="make">make</userinput></screen>
  88. <para>Install the package:</para>
  89. <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
  90. cp -Rv DESTDIR&usr-lib-mx32;/* &usr-lib-mx32;
  91. rm -rf DESTDIR</userinput></screen>
  92. </sect2><!-- mx32 -->
  93. <sect2 id="contents-libtool" role="content">
  94. <title>Contents of Libtool</title>
  95. <segmentedlist>
  96. <segtitle>Installed programs</segtitle>
  97. <segtitle>Installed libraries</segtitle>
  98. <segtitle>Installed directories</segtitle>
  99. <seglistitem>
  100. <seg>libtool and libtoolize</seg>
  101. <seg>libltdl.so</seg>
  102. <seg>/usr/include/libltdl and /usr/share/libtool</seg>
  103. </seglistitem>
  104. </segmentedlist>
  105. <variablelist>
  106. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  107. <?dbfo list-presentation="list"?>
  108. <?dbhtml list-presentation="table"?>
  109. <varlistentry id="libtool">
  110. <term><command>libtool</command></term>
  111. <listitem>
  112. <para>Provides generalized library-building support services</para>
  113. <indexterm zone="ch-system-libtool libtool">
  114. <primary sortas="b-libtool">libtool</primary>
  115. </indexterm>
  116. </listitem>
  117. </varlistentry>
  118. <varlistentry id="libtoolize">
  119. <term><command>libtoolize</command></term>
  120. <listitem>
  121. <para>Provides a standard way to add <command>libtool</command>
  122. support to a package</para>
  123. <indexterm zone="ch-system-libtool libtoolize">
  124. <primary sortas="b-libtoolize">libtoolize</primary>
  125. </indexterm>
  126. </listitem>
  127. </varlistentry>
  128. <varlistentry id="libltdl">
  129. <term><filename class="libraryfile">libltdl</filename></term>
  130. <listitem>
  131. <para>Hides the various difficulties of dlopening libraries</para>
  132. <indexterm zone="ch-system-libtool libltdl">
  133. <primary sortas="c-libltdl">libltdl</primary>
  134. </indexterm>
  135. </listitem>
  136. </varlistentry>
  137. </variablelist>
  138. </sect2>
  139. </sect1>