Simplify build on macOS (#35570)
authorCédric Luthi <cedric.luthi@gmail.com>
Thu, 7 May 2020 09:12:29 +0000 (11:12 +0200)
committerGitHub <noreply@github.com>
Thu, 7 May 2020 09:12:29 +0000 (11:12 +0200)
commitf6aad636c9bdacb6c98b144449c5d72ef9c50e70
treeeda68f8522b61cabb7cd2fec736f66ed8bbbbd11
parentc2b10188d540c863e8233e9a556cbc7af5bfbd8d
Simplify build on macOS (#35570)

* Check for OpenSSL (and pkg-config) in the check_prereqs() function
* Simplify OpenSSL installation instructions
* Automatically pick the OpenSSL version installed by Homebrew by exporting the proper PKG_CONFIG_PATH environment variable
* Improve the error message if cmake can't find OpenSSL

The previous instructions were asking the user to add symbolic links inside  /usr/local/lib/ and /usr/local/lib/pkgconfig/ for OpenSSL related files. There is no need for a complicated setup with symbolic links when the PKG_CONFIG_PATH environment variable points to the right pkgconfig, which is now done in build-commons.sh.

Co-Authored-By: Jan Kotas <jkotas@microsoft.com>
Co-Authored-By: Jeremy Barton <jbarton@microsoft.com>
docs/workflow/building/coreclr/osx-instructions.md
docs/workflow/requirements/macos-requirements.md
eng/install-native-dependencies.sh
eng/native/build-commons.sh
eng/pipelines/common/global-build-job.yml
eng/pipelines/installer/jobs/base-job.yml
eng/pipelines/libraries/build-job.yml
src/libraries/Native/Unix/System.Security.Cryptography.Native/CMakeLists.txt