]> git.armaanb.net Git - asd-repo.git/blobdiff - core/libffi/build
Adapt for asd linux
[asd-repo.git] / core / libffi / build
diff --git a/core/libffi/build b/core/libffi/build
new file mode 100755 (executable)
index 0000000..7f3e4bf
--- /dev/null
@@ -0,0 +1,18 @@
+#!/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.
+ln -s libffi.so.8 "$1/usr/lib/libffi.so.7"
+#
+# 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"