mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-01-01 14:44:48 +01:00
Merge pull request #2049 from rbenv/support-opensuse-openssl
Allow OPENSSL_VERSION_TEXT string match without last line for OpenSUSE
This commit is contained in:
commit
2443ff3d56
1 changed files with 1 additions and 1 deletions
|
@ -1101,7 +1101,7 @@ has_broken_mac_openssl() {
|
|||
}
|
||||
|
||||
system_openssl_version() {
|
||||
local version_text=$(printf '#include <openssl/opensslv.h>\nOPENSSL_VERSION_TEXT\n' | cc -xc -E - 2>/dev/null | tail -n 1)
|
||||
local version_text=$(printf '#include <openssl/opensslv.h>\nOPENSSL_VERSION_TEXT\n' | cc -xc -E - 2>/dev/null)
|
||||
if [[ $version_text == *"OpenSSL "* ]]; then
|
||||
local version=${version_text#*OpenSSL }
|
||||
version=${version%% *}
|
||||
|
|
Loading…
Reference in a new issue