Skip to content

Commit

Permalink
build-commons.sh: check for OpenSSL 1.1 on macOS (#43037)
Browse files Browse the repository at this point in the history
We're installing openssl@1.1 from Homebrew so we should check that version.
It looks like CI Macs don't set the /usr/local/opt/openssl symlink anymore.
  • Loading branch information
akoeplinger authored Oct 5, 2020
1 parent 04031c3 commit f15b55a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/native/build-commons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ check_prereqs()
if ! pkg-config openssl ; then
# We export the proper PKG_CONFIG_PATH where openssl was installed by Homebrew
# It's important to _export_ it since build-commons.sh is sourced by other scripts such as build-native.sh
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
export PKG_CONFIG_PATH=/usr/local/opt/openssl@1.1/lib/pkgconfig
# We try again with the PKG_CONFIG_PATH in place, if pkg-config still can't find OpenSSL, exit with an error, cmake won't find OpenSSL either
pkg-config openssl || { echo >&2 "Please install openssl before running this script, see https://github.com/dotnet/runtime/blob/master/docs/workflow/requirements/macos-requirements.md"; exit 1; }
fi
Expand Down

0 comments on commit f15b55a

Please sign in to comment.