Commit 41e747c1 by Mislav Marohnić

Fix openssl 1.1 installation

The `configure` command for OpenSSL 1.1 doesn't support `no-krb5`
option, and `no-ssl2` option was deprecated.

Fixes https://github.com/rbenv/ruby-build/pull/1053#issuecomment-276666932
parent 06da00bb
...@@ -988,8 +988,11 @@ build_package_mac_openssl() { ...@@ -988,8 +988,11 @@ build_package_mac_openssl() {
export KERNEL_BITS="64" export KERNEL_BITS="64"
OPENSSL_CONFIGURE="${OPENSSL_CONFIGURE:-./config}" OPENSSL_CONFIGURE="${OPENSSL_CONFIGURE:-./config}"
# Compile a shared lib with zlib dynamically linked, no kerberos. local nokerberos
package_option openssl configure --openssldir="$OPENSSLDIR" zlib-dynamic no-ssl2 no-ssl3 no-krb5 shared [[ "$1" != openssl-1.0.* ]] || nokerberos=1
# Compile a shared lib with zlib dynamically linked.
package_option openssl configure --openssldir="$OPENSSLDIR" zlib-dynamic no-ssl3 shared ${nokerberos:+no-ssl2 no-krb5}
# Default MAKE_OPTS are -j 2 which can confuse the build. Thankfully, make # Default MAKE_OPTS are -j 2 which can confuse the build. Thankfully, make
# gives precedence to the last -j option, so we can override that. # gives precedence to the last -j option, so we can override that.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment