libtool.xml 5.5 KB

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