Commit 5d5792f6 by Kevin Bullock

Build Ruby against the right OpenSSL on macOS if pkg-config is present (#1085)

parent c2ea18bd
...@@ -1007,6 +1007,9 @@ build_package_mac_openssl() { ...@@ -1007,6 +1007,9 @@ build_package_mac_openssl() {
# Tell Ruby to use this openssl for its extension. # Tell Ruby to use this openssl for its extension.
package_option ruby configure --with-openssl-dir="$OPENSSL_PREFIX_PATH" package_option ruby configure --with-openssl-dir="$OPENSSL_PREFIX_PATH"
# Make sure pkg-config finds our build first.
export PKG_CONFIG_PATH="${OPENSSL_PREFIX_PATH}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
# Hint OpenSSL that we prefer a 64-bit build. # Hint OpenSSL that we prefer a 64-bit build.
export KERNEL_BITS="64" export KERNEL_BITS="64"
OPENSSL_CONFIGURE="${OPENSSL_CONFIGURE:-./config}" OPENSSL_CONFIGURE="${OPENSSL_CONFIGURE:-./config}"
......
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