lib/vips.rb in vips-8.12.2 vs lib/vips.rb in vips-8.15.1
- old
+ new
@@ -25,11 +25,11 @@
# "lib" prefix or a ".dll" suffix.
def library_name(name, abi_number)
if FFI::Platform.windows?
"lib#{name}-#{abi_number}.dll"
elsif FFI::Platform.mac?
- "lib#{name}.#{abi_number}.dylib"
+ "lib#{name}.#{abi_number}"
else
"lib#{name}.so.#{abi_number}"
end
end
@@ -568,10 +568,10 @@
# {Image#median}.
module Vips
extend FFI::Library
- ffi_lib File.expand_path(library_name("vips", 42), __dir__)
+ ffi_lib library_name("vips", 42)
LOG_DOMAIN = "VIPS"
GLib.set_log_domain LOG_DOMAIN
# we can't just use ulong, windows has different int sizing rules