aboutsummaryrefslogtreecommitdiff
path: root/extra/libffi/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libffi/build')
-rwxr-xr-xextra/libffi/build17
1 files changed, 17 insertions, 0 deletions
diff --git a/extra/libffi/build b/extra/libffi/build
new file mode 100755
index 00000000..b2747a3d
--- /dev/null
+++ b/extra/libffi/build
@@ -0,0 +1,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"