From 2b2f60b7a3e77255a9d308bcb04b4c45f3329f8f Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Fri, 2 Nov 2018 10:53:30 +0100 Subject: [PATCH] On Darwin, for the use of /usr/bin/ar and /usr/bin/ranlib. Fixes #1812 --- ext/nokogiri/extconf.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/nokogiri/extconf.rb b/ext/nokogiri/extconf.rb index cfcda83118..b865e8b569 100644 --- a/ext/nokogiri/extconf.rb +++ b/ext/nokogiri/extconf.rb @@ -560,7 +560,8 @@ def install *(libiconv_recipe ? "--with-iconv=#{libiconv_recipe.path}" : iconv_configure_flags), "--with-c14n", "--with-debug", - "--with-threads" + "--with-threads", + *(darwin? ? ["RANLIB=/usr/bin/ranlib", "AR=/usr/bin/ar"] : "") ] end @@ -573,7 +574,8 @@ def install "--without-python", "--without-crypto", "--with-debug", - "--with-libxml-prefix=#{sh_export_path(libxml2_recipe.path)}" + "--with-libxml-prefix=#{sh_export_path(libxml2_recipe.path)}", + *(darwin? ? ["RANLIB=/usr/bin/ranlib", "AR=/usr/bin/ar"] : "") ] end