Skip to content

Commit

Permalink
Keep use_homebrew_openssl function
Browse files Browse the repository at this point in the history
  • Loading branch information
gfguthrie committed Nov 8, 2019
1 parent 9d96a6b commit 015b248
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/ruby-build
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,16 @@ has_broken_mac_openssl() {
[[ "$RUBY_CONFIGURE_OPTS" != *--with-openssl-dir=* ]]
}

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
}

build_package_mac_openssl() {
# Install to a subdirectory since we don't want shims for bin/openssl.
OPENSSL_PREFIX_PATH="${PREFIX_PATH}/openssl"
Expand Down

0 comments on commit 015b248

Please sign in to comment.