aboutsummaryrefslogtreecommitdiff
path: root/extra/libffi/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2019-12-09 19:17:24 +0300
committerCem Keylan <cem@ckyln.com>2019-12-09 19:17:24 +0300
commit03423e0583057cbe5a16f8439183e2dbc0e8dd7c (patch)
tree81fe3ba69d94146f83fb5541d1fb2da0ac4eac08 /extra/libffi/build
downloadrepository-03423e0583057cbe5a16f8439183e2dbc0e8dd7c.tar.gz
secondary commit
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"