MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« ElfUtils 32-bit HOME LibFFI 32-bit »

LibFFI 64-bit

Name: LibFFI 64-bit
Summary: A foreign function interface library
License: MIT
Version: 3.5.2
URL: https://github.com/libffi/libffi/releases/download/v3.5.2/libffi-3.5.2.tar.gz

Average Build Time: 1.7 SBU
Used Install Space: 168 KiB

Configuration

To configure LibFFI 64-bit for install into the build root, run the following command:

./configure --prefix=/usr           \
            --libdir=/usr/lib64     \
            --libexecdir=/usr/lib64 \
            --disable-static        \
            --with-gcc-arch=x86-64-v2

Compilation and Installation

To compile LibFFI 64-bit, run the following command:

make

Next, run the test suite:

make check

Finally, to install LibFFI 64-bit into the build tree, run the following commands:

make install
rm -fv /usr/lib64/libffi.la

NOTE: Do not delete the unpacked sources after build.

Contents

Contents  
Installed Libraries libffi.so
Navigation    
« ElfUtils 32-bit HOME LibFFI 32-bit »