diff options
author | joerg <joerg@pkgsrc.org> | 2020-05-22 01:18:33 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2020-05-22 01:18:33 +0000 |
commit | 82d7d88bee0c6806371ba8d1dbb697df80837876 (patch) | |
tree | adc949bd9c9435e240d23f7647f36c289ff9c2e9 | |
parent | 08a696fcab45727c3be4f1594443aea4e2c4aa30 (diff) | |
download | pkgsrc-82d7d88bee0c6806371ba8d1dbb697df80837876.tar.gz |
Fix build with newer libffi
-rw-r--r-- | lang/ecl/distinfo | 3 | ||||
-rw-r--r-- | lang/ecl/patches/patch-src_c_ffi.d | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/lang/ecl/distinfo b/lang/ecl/distinfo index d1c03ccbde9..835902295cb 100644 --- a/lang/ecl/distinfo +++ b/lang/ecl/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.20 2019/03/01 13:30:52 leot Exp $ +$NetBSD: distinfo,v 1.21 2020/05/22 01:18:33 joerg Exp $ SHA1 (ecl-16.1.3.tgz) = a0db6c435dcc33404b0a2a4a402e1f2edc169e95 RMD160 (ecl-16.1.3.tgz) = 320e93e4abe62fa1fe9e36688ba040eef8ae8923 SHA512 (ecl-16.1.3.tgz) = 5d743f422f6bc24671abf4c739cde8273d08f056906a1ef8aed5145c703b6d52c7fa4b5e0be8c125f32240c20ce053007786bb3ae81cc34d47791f6fae0819c1 Size (ecl-16.1.3.tgz) = 7459212 bytes +SHA1 (patch-src_c_ffi.d) = ae94ffc5b3ad70890b9d4f71d9c84a39f5526059 diff --git a/lang/ecl/patches/patch-src_c_ffi.d b/lang/ecl/patches/patch-src_c_ffi.d new file mode 100644 index 00000000000..fd71239c027 --- /dev/null +++ b/lang/ecl/patches/patch-src_c_ffi.d @@ -0,0 +1,18 @@ +$NetBSD: patch-src_c_ffi.d,v 1.1 2020/05/22 01:18:33 joerg Exp $ + +Match what libffi actually provides. + +--- src/c/ffi.d.orig 2020-05-22 00:18:58.780386592 +0000 ++++ src/c/ffi.d +@@ -132,7 +132,10 @@ static struct { + {@':stdcall', FFI_STDCALL}, + #elif defined(X86_WIN64) + {@':win64', FFI_WIN64}, +-#elif defined(X86_ANY) || defined(X86) || defined(X86_64) ++#elif defined(X86_64) || (defined (__x86_64__) && defined (X86_DARWIN)) ++ {@':cdecl', FFI_UNIX64}, ++ {@':unix64', FFI_UNIX64}, ++#elif defined(X86_ANY) || defined(X86) + {@':cdecl', FFI_SYSV}, + {@':sysv', FFI_SYSV}, + {@':unix64', FFI_UNIX64}, |