Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Kumpera <kumpera@users.noreply.github.com>2018-02-08 15:38:13 +0300
committerStephen Toub <stoub@microsoft.com>2018-02-08 15:38:13 +0300
commitac72f91bfcaed694c789e24a2a0a6a042fa18916 (patch)
tree428a3ee8fb4c9eb1b0b4d756169bcce83f355dfa /Documentation
parent66453000be6fa6d91a95317122d35f34cb921a5b (diff)
Improve OSX build instructions (#26874)
* Improve OSX build instructions * Fix instructions to handle multiple installed openssl.
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/building/unix-instructions.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/Documentation/building/unix-instructions.md b/Documentation/building/unix-instructions.md
index 83e4befec1..f93cedd8d9 100644
--- a/Documentation/building/unix-instructions.md
+++ b/Documentation/building/unix-instructions.md
@@ -102,6 +102,25 @@ ln -s /usr/local/opt/openssl/lib/pkgconfig/libssl.pc /usr/local/lib/pkgconfig/
ln -s /usr/local/opt/openssl/lib/pkgconfig/openssl.pc /usr/local/lib/pkgconfig/
```
+Alternatively, to avoid modifying /usr/local/ you can invoke cmake with the `OPENSSL_ROOT_DIR` env var set. The value to be passed in the directory where openssl is installed. Use `brew info openssl` to determine it. For example:
+
+```
+$brew info openssl
+openssl: stable 1.0.2l (bottled) [keg-only]
+SSL/TLS cryptography library
+https://openssl.org/
+/usr/local/Cellar/openssl/1.0.1f (1,229 files, 10.8MB)
+ Poured from bottle on 2014-01-20 at 19:25:30
+/usr/local/Cellar/openssl/1.0.1g (1,229 files, 10.6MB)
+ Poured from bottle on 2014-04-07 at 11:26:41
+```
+
+With the above example, we'd pick the latest version `1.0.1g` and invoke cmake like the following:
+
+```
+OPENSSL_ROOT_DIR="/usr/local/Cellar/openssl/1.0.1g cmake
+```
+
### Known Issues
If you see errors along the lines of `SendFailure (Error writing headers)` you may need to import trusted root certificates: