From afae8cebe35440dd97301972cdddfe1e9ab44818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hajo=20Nils=20Krabbenh=C3=B6ft?= Date: Mon, 30 Mar 2020 14:12:40 +0200 Subject: [PATCH 1/2] add Init_libcld2 --- ext/cld/thunk.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/cld/thunk.cc b/ext/cld/thunk.cc index 66188b3..6112876 100644 --- a/ext/cld/thunk.cc +++ b/ext/cld/thunk.cc @@ -44,7 +44,11 @@ extern "C" { res.reliable = is_reliable; return res; } + + void Init_libcld2() { + } + } int main(int argc, char **argv) { -} \ No newline at end of file +} From dbf27967b3e464b03eaa7070f54a3b3c5216c328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hajo=20Nils=20Krabbenh=C3=B6ft?= Date: Mon, 30 Mar 2020 17:35:28 +0200 Subject: [PATCH 2/2] Windows Ruby 2.6 x64 fixes --- ext/cld/libcld2.def | 3 +++ lib/cld.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 ext/cld/libcld2.def diff --git a/ext/cld/libcld2.def b/ext/cld/libcld2.def new file mode 100644 index 0000000..b9b60ca --- /dev/null +++ b/ext/cld/libcld2.def @@ -0,0 +1,3 @@ +EXPORTS +Init_libcld2 +detectLanguageThunkInt diff --git a/lib/cld.rb b/lib/cld.rb index b1f2cbe..6c798d0 100644 --- a/lib/cld.rb +++ b/lib/cld.rb @@ -8,7 +8,7 @@ module CLD suffix = if FFI::Platform.mac? 'bundle' else - FFI::Platform::LIBSUFFIX + "so" end ffi_lib File.join(File.expand_path(File.dirname(__FILE__)), '..', 'ext', 'cld', 'libcld2.' + suffix)