Unverified Commit 2f292680 by SHIBATA Hiroshi Committed by GitHub

Merge pull request #1147 from krbullock/fix/openssl-darwin-pkgconfig

Build Ruby against the right OpenSSL on macOS if pkg-config is present
parents 6560dc99 5d5792f6
......@@ -1011,6 +1011,9 @@ build_package_mac_openssl() {
# Tell Ruby to use this openssl for its extension.
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.
export KERNEL_BITS="64"
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