libffi.xml 3.6 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-system-libffi" role="wrap">
  8. <?dbhtml filename="libffi.html"?>
  9. <sect1info condition="script">
  10. <productname>libffi</productname>
  11. <productnumber>&libffi-version;</productnumber>
  12. <address>&libffi-url;</address>
  13. </sect1info>
  14. <title>Libffi-&libffi-version;</title>
  15. <indexterm zone="ch-system-libffi">
  16. <primary sortas="a-libffi">libffi</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Libffi library provides a portable, high level programming
  21. interface to various calling conventions. This allows a programmer to call
  22. any function specified by a call interface description at run time.</para>
  23. <segmentedlist>
  24. <segtitle>&buildtime;</segtitle>
  25. <segtitle>&diskspace;</segtitle>
  26. <seglistitem>
  27. <seg>&libffi-fin-sbu;</seg>
  28. <seg>&libffi-fin-du;</seg>
  29. </seglistitem>
  30. </segmentedlist>
  31. </sect2>
  32. <sect2 role="installation">
  33. <title>Installation of Libffi</title>
  34. <note>
  35. <para>Similar to GMP, libffi builds with optimizations specific
  36. to the proccesor in use. If building for another system, export
  37. CFLAGS and CXXFLAGS to specify a generic build for your architecture.
  38. If this is not done, all applications that link to libffi will trigger
  39. Illegal Operation Errors.</para>
  40. </note>
  41. <para>Prepare libffi for compilation:</para>
  42. <screen><userinput remap="configure">./configure --prefix=/usr --disable-static --with-gcc-arch=native</userinput></screen>
  43. <variablelist>
  44. <title>The meaning of the configure option:</title>
  45. <varlistentry>
  46. <term><parameter>--with-gcc-arch=native</parameter></term>
  47. <listitem>
  48. <para>Ensure GCC optimizes for the current system. If this
  49. is not specified, the system is guessed and the code generated
  50. may not be correct for some systems. If the generated code
  51. will be copied from the native system to a less capable
  52. system, use the less capable system as a parameter. For details
  53. about alternative system types, see <ulink
  54. url='https://gcc.gnu.org/onlinedocs/gcc-&gcc-version;/gcc/x86-Options.html'>
  55. the x86 options in the GCC manual</ulink>.</para>
  56. </listitem>
  57. </varlistentry>
  58. </variablelist>
  59. <para>Compile the package:</para>
  60. <screen><userinput remap="make">make</userinput></screen>
  61. <para>To test the results, issue:</para>
  62. <screen><userinput remap="test">make check</userinput></screen>
  63. <para>Install the package:</para>
  64. <screen><userinput remap="install">make install</userinput></screen>
  65. </sect2>
  66. <sect2 id="contents-libffi" role="content">
  67. <title>Contents of Libffi</title>
  68. <segmentedlist>
  69. <segtitle>Installed library</segtitle>
  70. <seglistitem>
  71. <seg>libffi.so</seg>
  72. </seglistitem>
  73. </segmentedlist>
  74. <variablelist>
  75. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  76. <?dbfo list-presentation="list"?>
  77. <?dbhtml list-presentation="table"?>
  78. <varlistentry id="libffi">
  79. <term><filename class="libraryfile">libffi</filename></term>
  80. <listitem>
  81. <para>contains the foreign function interface API functions</para>
  82. <indexterm zone="ch-system-libffi">
  83. <primary sortas="c-libffi">libffi</primary>
  84. </indexterm>
  85. </listitem>
  86. </varlistentry>
  87. </variablelist>
  88. </sect2>
  89. </sect1>