aboutsummaryrefslogtreecommitdiff
path: root/extra/libffi
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libffi')
-rwxr-xr-xextra/libffi/build17
-rw-r--r--extra/libffi/checksums1
-rw-r--r--extra/libffi/sources1
-rw-r--r--extra/libffi/version1
4 files changed, 20 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"
diff --git a/extra/libffi/checksums b/extra/libffi/checksums
new file mode 100644
index 00000000..635bf88b
--- /dev/null
+++ b/extra/libffi/checksums
@@ -0,0 +1 @@
+72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056 libffi-3.3.tar.gz
diff --git a/extra/libffi/sources b/extra/libffi/sources
new file mode 100644
index 00000000..c4dceb60
--- /dev/null
+++ b/extra/libffi/sources
@@ -0,0 +1 @@
+https://sourceware.org/pub/libffi/libffi-3.3.tar.gz
diff --git a/extra/libffi/version b/extra/libffi/version
new file mode 100644
index 00000000..ef8da5d7
--- /dev/null
+++ b/extra/libffi/version
@@ -0,0 +1 @@
+3.3 1