1 diff --git a/magick/wand/lib.lua b/magick/wand/lib.lua
2 index 21940a0..0d103dc 100644
3 --- a/magick/wand/lib.lua
4 +++ b/magick/wand/lib.lua
5 @@ -134,15 +134,6 @@ get_filters = function()
7 "/usr/include/ImageMagick",
8 "/usr/local/include/ImageMagick",
10 - local _accum_0 = { }
12 - for p in get_flags():gmatch("-I([^%s]+)") do
13 - _accum_0[_len_0] = p
19 for _index_0 = 1, #prefixes do
20 local p = prefixes[_index_0]
21 @@ -204,12 +195,7 @@ try_to_load = function(...)
26 - out = ffi.load(name)
31 + return ffi.load(name)
33 if not _continue_0 then
35 @@ -217,17 +203,7 @@ try_to_load = function(...)
37 return error("Failed to load ImageMagick (" .. tostring(...) .. ")")
39 -lib = try_to_load("MagickWand", function()
40 - local lname = get_flags():match("-l(MagickWand[^%s]*)")
42 - if ffi.os == "OSX" then
44 - elseif ffi.os == "Windows" then
49 - return lname and "lib" .. lname .. suffix
50 +lib = try_to_load("@nix_wand@", function()