-
Stop automatically linking to Homebrew OpenSSL.
This has caused all sorts of problems over time, and with the recent split of OpenSSL v1.1 vs. v1.0 in Homebrew, it has become more complex for individual build definitions to correctly pick the compatible version of OpenSSL.
You can preserve the old behavior by linking to Homebrew's openssl explicitly:
brew install openssl@1.1 RUBY_CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl@1.1` ruby-build ...
Note: use
openssl@1.0
for Ruby version that need it (typically pre-2.4).