mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-27 09:42:12 +08:00
31d2934e8c
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11649 af4574ff-66df-0310-9fd7-8a98e5e911e0
173 lines
4.5 KiB
XML
173 lines
4.5 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY libffi-download-http " ">
|
|
<!ENTITY libffi-download-ftp "ftp://sourceware.org/pub/libffi/libffi-&libffi-version;.tar.gz">
|
|
<!ENTITY libffi-md5sum "45f3b6dbc9ee7c7dfbbbc5feba571529">
|
|
<!ENTITY libffi-size "828 KB">
|
|
<!ENTITY libffi-buildsize "6.2 MB">
|
|
<!ENTITY libffi-time "0.1 SBU">
|
|
]>
|
|
|
|
<sect1 id="libffi" xreflabel="libffi-&libffi-version;">
|
|
<?dbhtml filename="libffi.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>libffi-&libffi-version;</title>
|
|
|
|
<indexterm zone="libffi">
|
|
<primary sortas="a-libffi">libffi</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to libffi</title>
|
|
|
|
<para>
|
|
The <application>libffi</application> library provides a portable,
|
|
high level programming interface to various calling conventions. This
|
|
allows a programmer to call any function specified by a call interface
|
|
description at run time.
|
|
</para>
|
|
|
|
&lfs74_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&libffi-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&libffi-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &libffi-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &libffi-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &libffi-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &libffi-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Required patch:
|
|
<ulink url="&patch-root;/libffi-&libffi-version;-includedir-1.patch"/>
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">libffi Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="dejagnu"/> (required to run the testsuite)
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">
|
|
User Notes: <ulink url="&blfs-wiki;/libffi"/>
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of libffi</title>
|
|
|
|
<para>
|
|
Install <application>libffi</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>patch -Np1 -i ../libffi-&libffi-version;-includedir-1.patch &&
|
|
./configure --prefix=/usr --disable-static &&
|
|
make</userinput></screen>
|
|
|
|
<para>
|
|
To test the results, issue: <command>make check</command>.
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
href="../../xincludes/static-libraries.xml"/>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Library</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
None
|
|
</seg>
|
|
<seg>
|
|
libffi.so
|
|
</seg>
|
|
<seg>
|
|
None
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="libffi-lib">
|
|
<term><filename class="libraryfile">libffi.so</filename></term>
|
|
<listitem>
|
|
<para>
|
|
contains the <application>libffi</application> API
|
|
functions.
|
|
</para>
|
|
<indexterm zone="libffi libffi-lib">
|
|
<primary sortas="c-libffi">libffi.so</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|