-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add other openssl path to PKG_CONFIG_PATH (#43041)
Follow-up to #43037 (comment)
- Loading branch information
1 parent
f15b55a
commit f025f53
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected]/lib/pkgconfig | ||
export PKG_CONFIG_PATH=/usr/local/opt/[email protected]/lib/pkgconfig:/usr/local/opt/openssl/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 | ||
|