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/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 +} 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)