6.48. libffi-3.2.1

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.

Approximate build time: 0.1 SBU
Required disk space: 6.1 MB

6.48.1. Installation of libffi

Modify the Makefile to install headers into the standard /usr/include directory instead of /usr/lib/libffi-3.2.1/include.

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

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

Prepare libffi for compilation:

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

Compile the package:


To test the results, issue:

make check

Install the package:

make install

6.48.2. Contents of libffi

Installed library: libffi.so

Short Descriptions


contains the libffi API functions.