From b99ecb8ff7a019ba232fe4b130669f32b0025e6e Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Wed, 3 Mar 2021 09:13:23 -0500 Subject: [PATCH] fix: ensure_func fails properly if it fails during build --- ext/nokogiri/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/nokogiri/extconf.rb b/ext/nokogiri/extconf.rb index e5bef4f305..d6692eb587 100644 --- a/ext/nokogiri/extconf.rb +++ b/ext/nokogiri/extconf.rb @@ -239,7 +239,7 @@ def ensure_package_configuration(opt: nil, pc: nil, lib:, func:, headers:) end def ensure_func(func, headers = nil) - have_func(func, headers) || abort_could_not_find_library(lib) + have_func(func, headers) || abort_could_not_find_library(func) end def preserving_globals