Merge pull request #1025 from jamieconnolly/fix-missing-openssl-lib

Ignore LibreSSL bundled with macOS 10.13
This commit is contained in:
Yamashita, Yuu 2017-10-31 09:38:37 +09:00 committed by GitHub
commit 8d5ffcd082
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1385,8 +1385,9 @@ use_homebrew_readline() {
}
has_broken_mac_openssl() {
is_mac &&
[[ "$(/usr/bin/openssl version 2>/dev/null || true)" = "OpenSSL 0.9.8"?* ]] &&
is_mac || return 1
local openssl_version="$(/usr/bin/openssl version 2>/dev/null || true)"
[[ $openssl_version = "OpenSSL 0.9.8"?* || $openssl_version = "LibreSSL"* ]] &&
! use_homebrew_openssl
}