Introduction to libffi

The libffi 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.

This package is known to build and work properly using an LFS-7.8 platform.

Package Information

  • Download (FTP):

  • Download MD5 sum: 83b89587607e3eb65c70d361f13bab43

  • Download size: 920 KB

  • Estimated disk space required: 6.1 MB (additional 1.7 MB for the tests)

  • Estimated build time: less than 0.1 SBU (additional 0.4 SBU for the tests)

libffi Dependencies


DejaGnu-1.5.3 (required to run the testsuite)

User Notes:

Installation of libffi

Install libffi by running the following commands:

sed -e '/^includesdir/ s/$(libdir).*$/$(includedir)/' \
    -i include/ &&

sed -e '/^includedir/ s/=.*$/=@includedir@/' \
    -e 's/^Cflags: -I${includedir}/Cflags:/' \
    -i        &&

./configure --prefix=/usr --disable-static &&

To test the results, issue: make check.

Now, as the root user:

make install

Command Explanations

sed ... include/ and sed ... Make package install headers into /usr/include instead of /usr/lib/libffi-3.2.1/include.

--disable-static: This switch prevents installation of static versions of the libraries.


Installed Programs: None
Installed Library:
Installed Directories: None

Short Descriptions

contains the libffi API functions.

Last updated on 2015-09-20 17:38:20 -0500