Skip to content

Commit

Permalink
Merge pull request #1813 from gpakosz/darwin-ranlib
Browse files Browse the repository at this point in the history
On Darwin, ignore anything but system's ranlib. Fixes #1812
  • Loading branch information
flavorjones authored Dec 1, 2018
2 parents 9c1dc21 + 2b2f60b commit da13fa3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ext/nokogiri/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,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

Expand All @@ -575,7 +576,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

Expand Down

0 comments on commit da13fa3

Please sign in to comment.