Skip to content

Commit 7fd3c92

Browse files
authored
Use and support OpenSSL 3 on macOS (#68045)
* Use OpenSSL 3 on macOS * Update documentation * Restart CI
1 parent 0e839d6 commit 7fd3c92

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/workflow/requirements/macos-requirements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Install the following packages:
2727

2828
- cmake 3.15.5 or newer
2929
- icu4c
30-
- openssl 1.1
30+
- openssl@1.1 or openssl@3
3131
- pkg-config
3232
- python3
3333
- ninja (optional, enables building native code with ninja instead of make)

eng/Brewfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
brew "cmake"
22
brew "icu4c"
3-
brew "openssl@1.1"
3+
brew "openssl@3"
44
brew "pkg-config"
55
brew "python3"

eng/native/build-commons.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ check_prereqs()
3535
if ! pkg-config openssl ; then
3636
# We export the proper PKG_CONFIG_PATH where openssl was installed by Homebrew
3737
# It's important to _export_ it since build-commons.sh is sourced by other scripts such as build-native.sh
38-
export PKG_CONFIG_PATH=$(brew --prefix)/opt/[email protected]/lib/pkgconfig:$(brew --prefix)/opt/openssl/lib/pkgconfig
38+
export PKG_CONFIG_PATH=$(brew --prefix)/opt/openssl@3/lib/pkgconfig:$(brew --prefix)/opt/openssl@1.1/lib/pkgconfig:$(brew --prefix)/opt/openssl/lib/pkgconfig
3939
# 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
4040
pkg-config openssl || { echo >&2 "Please install openssl before running this script, see https://github.com/dotnet/runtime/blob/main/docs/workflow/requirements/macos-requirements.md"; exit 1; }
4141
fi

0 commit comments

Comments
 (0)