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.6 systemd platform.
Download (FTP): ftp://sourceware.org/pub/libffi/libffi-3.1.tar.gz
Download MD5 sum: f5898b29bbfd70502831a212d9249d10
Download size: 916 KB
Estimated disk space required: 6.5 MB (additional 1.7 MB for the tests)
Estimated build time: less than 0.1 SBU (additional 0.6 SBU for the tests)
DejaGnu-1.5.1 (required to run the testsuite)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/libffi
Install libffi by running the following commands:
sed -e '/^includesdir/ s:$(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include:$(includedir):' \ -i include/Makefile.in && sed -e '/^includedir/ s:${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include:@includedir@:' \ -e 's/^Cflags: -I${includedir}/Cflags:/' \ -i libffi.pc.in && ./configure --prefix=/usr --disable-static && make
To test the results, issue: make check.
Now, as the root
user:
make install
sed ... include/Makefile.in and sed ... libffi.pc.in: Make package install headers into /usr/include instead of /usr/lib/libffi-3.1/include.
--disable-static
: This
switch prevents installation of static versions of the libraries.
Last updated on 2014-08-22 13:59:17 -0700