diff --git a/src/compiler/crystal/ffi/lib_ffi.cr b/src/compiler/crystal/ffi/lib_ffi.cr index 22929279c09e..654908eb9af3 100644 --- a/src/compiler/crystal/ffi/lib_ffi.cr +++ b/src/compiler/crystal/ffi/lib_ffi.cr @@ -4,7 +4,7 @@ # # See https://crystal-lang.org/reference/man/required_libraries.html#compiler-dependencies module Crystal - @[Link("ffi")] + @[Link("ffi", pkg_config: "libffi")] {% if compare_versions(Crystal::VERSION, "1.11.0-dev") >= 0 %} @[Link(dll: "libffi.dll")] {% end %}