From b0aabe01adf7a1d17e885fcce9b6a7b1d4cf2700 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 23 Sep 2017 22:22:37 +0000 Subject: Add Meson-0.42.1. Add Ninja-1.8.2. Add Python-3.6.2. Add libffi-3.2.1. Update to eudev-3.2.4. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11303 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/libffi.xml | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 chapter06/libffi.xml (limited to 'chapter06/libffi.xml') diff --git a/chapter06/libffi.xml b/chapter06/libffi.xml new file mode 100644 index 000000000..c04a39f69 --- /dev/null +++ b/chapter06/libffi.xml @@ -0,0 +1,104 @@ + + + %general-entities; +]> + + + + + + libffi + &libffi-version; +
&libffi-url;
+
+ + libffi-&libffi-version; + + + libffi + + + + + + <para>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.</para> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + + <seglistitem> + <seg>&libffi-ch6-sbu;</seg> + <seg>&libffi-ch6-du;</seg> + </seglistitem> + </segmentedlist> + + </sect2> + + <sect2 role="installation"> + <title>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: + +make + + To test the results, issue: + +make check + + Install the package: + +make install + + + + + Contents of libffi + + + Installed library + + + libffi.so + + + + + Short Descriptions + + + + + libffi + + contains the libffi API functions. + + libffi + + + + + + + +
+ -- cgit v1.2.3-54-g00ecf