From f025f53481b492725cf889616315c73102b6ee58 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexander=20K=C3=B6plinger?= Date: Mon, 5 Oct 2020 20:21:27 +0200 Subject: [PATCH] Add other openssl path to PKG_CONFIG_PATH (#43041) Follow-up to https://github.com/dotnet/runtime/pull/43037#discussion_r499726268 --- eng/native/build-commons.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/native/build-commons.sh b/eng/native/build-commons.sh index dc1641f..4438fab 100755 --- a/eng/native/build-commons.sh +++ b/eng/native/build-commons.sh @@ -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@1.1/lib/pkgconfig + export PKG_CONFIG_PATH=/usr/local/opt/openssl@1.1/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 -- 2.7.4