Skip to content

Commit

Permalink
Don’t look for homebrew openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
gfguthrie committed Nov 8, 2019
1 parent 9383de3 commit 9d96a6b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions bin/ruby-build
Original file line number Diff line number Diff line change
Expand Up @@ -1020,18 +1020,7 @@ has_broken_mac_openssl() {
is_mac || return 1
local openssl_version="$(/usr/bin/openssl version 2>/dev/null || true)"
[[ $openssl_version = "OpenSSL 0.9.8"?* || $openssl_version = "LibreSSL"* ]] &&
[[ "$RUBY_CONFIGURE_OPTS" != *--with-openssl-dir=* ]] &&
! use_homebrew_openssl
}

use_homebrew_openssl() {
local ssldir="$(brew --prefix [email protected] 2>/dev/null || true)"
if [ -d "$ssldir" ]; then
echo "ruby-build: using openssl from homebrew"
package_option ruby configure --with-openssl-dir="$ssldir"
else
return 1
fi
[[ "$RUBY_CONFIGURE_OPTS" != *--with-openssl-dir=* ]]
}

build_package_mac_openssl() {
Expand Down

0 comments on commit 9d96a6b

Please sign in to comment.