aboutsummaryrefslogtreecommitdiff
path: root/extra/libffi/build
blob: b2747a3d026dd7bdf68fab18db8b113ac9f8ef04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e

./configure \
    --prefix=/usr \
    --with-pic

make
make DESTDIR="$1" install

# Maintain compatibility and avoid the need
# for rebuilds of all packages linking to
# libffi.
#
# ABI incompatibility only affects AArch64.
# See: https://github.com/libffi/libffi/commit/c02c341
#      https://github.com/libffi/libffi/issues/528
ln -s libffi.so.7 "$1/usr/lib/libffi.so.6"