Commit 5d5792f6 authored by Kevin Bullock's avatar Kevin Bullock
Browse files

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

parent c2ea18bd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1007,6 +1007,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}"