libtool.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>Libtool 软件包包含 GNU 通用库支持脚本。
  21. 它在一个一致、可移植的接口下隐藏了使用共享库的复杂性。</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&libtool-ch6-sbu;</seg>
  27. <seg>&libtool-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>安装 Libtool</title>
  33. <para>准备安装 Libtool:</para>
  34. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  35. <para>编译该软件包:</para>
  36. <screen><userinput remap="make">make</userinput></screen>
  37. <para>为了测试编译结果,执行:</para>
  38. <screen><userinput remap="test">make check</userinput></screen>
  39. <note><para>在多核系统上,可以显著减少 libtool 的测试时间。
  40. 为了使用多个核心,在上述命令中附加
  41. <command>TESTSUITEFLAGS=-j&lt;N&gt;</command> 参数。
  42. 例如,使用 -j4 可以减少超过 60% 的测试时间。</para></note>
  43. <!--para>Five tests are known to fail in the LFS build environment due
  44. to a circular dependency, but all tests pass if rechecked after
  45. automake is installed.</para-->
  46. <para>在 LFS 构建环境中,已知有五个测试因为循环依赖而失败。
  47. 然而在 automake 安装后,所有测试都能通过。</para>
  48. <para>安装该软件包:</para>
  49. <screen><userinput remap="install">make install</userinput></screen>
  50. </sect2>
  51. <sect2 id="contents-libtool" role="content">
  52. <title>Libtool 的内容</title>
  53. <segmentedlist>
  54. <segtitle>安装的程序</segtitle>
  55. <segtitle>安装的库</segtitle>
  56. <segtitle>安装的目录</segtitle>
  57. <seglistitem>
  58. <seg>libtool 和 libtoolize</seg>
  59. <seg>libltdl.so</seg>
  60. <seg>/usr/include/libltdl 和 /usr/share/libtool</seg>
  61. </seglistitem>
  62. </segmentedlist>
  63. <variablelist>
  64. <bridgehead renderas="sect3">简要描述</bridgehead>
  65. <?dbfo list-presentation="list"?>
  66. <?dbhtml list-presentation="table"?>
  67. <varlistentry id="libtool">
  68. <term><command>libtool</command></term>
  69. <listitem>
  70. <para>提供通用化库文件构建支持服务</para>
  71. <indexterm zone="ch-system-libtool libtool">
  72. <primary sortas="b-libtool">libtool</primary>
  73. </indexterm>
  74. </listitem>
  75. </varlistentry>
  76. <varlistentry id="libtoolize">
  77. <term><command>libtoolize</command></term>
  78. <listitem>
  79. <para>提供为软件包增加 <command>libtool</command> 支持的标准方法
  80. </para>
  81. <indexterm zone="ch-system-libtool libtoolize">
  82. <primary sortas="b-libtoolize">libtoolize</primary>
  83. </indexterm>
  84. </listitem>
  85. </varlistentry>
  86. <varlistentry id="libltdl">
  87. <term><filename class="libraryfile">libltdl</filename></term>
  88. <listitem>
  89. <para>隐藏用 dlopen 加载库时可能遇到的若干困难</para>
  90. <indexterm zone="ch-system-libtool libltdl">
  91. <primary sortas="c-libltdl">libltdl</primary>
  92. </indexterm>
  93. </listitem>
  94. </varlistentry>
  95. </variablelist>
  96. </sect2>
  97. </sect1>