repo/extra/libffi/build

25 lines
678 B
Plaintext
Raw Normal View History

2019-07-23 13:15:56 +00:00
#!/bin/sh -e
./configure \
--prefix=/usr \
2021-07-03 09:19:43 +00:00
--disable-exec-static-tramp \
2019-07-23 13:15:56 +00:00
--with-pic
make
2021-07-18 02:33:28 +00:00
make install
2019-11-24 09:37:51 +00:00
2019-11-24 09:56:39 +00:00
# Maintain compatibility and avoid the need
# for rebuilds of all packages linking to
# libffi.
2019-11-24 13:52:11 +00:00
#
2021-07-03 09:19:43 +00:00
# ABI incompatibility (6 -> 7) only affects AArch64.
2019-11-24 13:52:11 +00:00
# See: https://github.com/libffi/libffi/commit/c02c341
# https://github.com/libffi/libffi/issues/528
2021-07-03 09:19:43 +00:00
#
2021-07-03 09:20:55 +00:00
# ABI incompatibility (7 -> 8) only affects
2021-07-03 09:19:43 +00:00
# --enable-exec-static-tramp (which is default).
# See: https://sourceware.org/pipermail/libffi-discuss/2021/002644.html
# https://github.com/libffi/libffi/pull/647
ln -sf libffi.so.7 "$1/usr/lib/libffi.so.6"
ln -sf libffi.so.8 "$1/usr/lib/libffi.so.7"