diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-24 09:30:55 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-24 09:30:55 -0800 |
commit | 29ffbd94d2c97ec46950af0e4aa1c8e4c4548909 (patch) | |
tree | 98d0d6c99685a4c1d2033edf61a597007efd64d8 /docs/hazmat/backends | |
parent | adbe0801270ac5ba247b78568ad42381419193d2 (diff) | |
parent | 017f0b05ebe6026b0ad0d6205fca6ec1e60540b4 (diff) | |
download | cryptography-29ffbd94d2c97ec46950af0e4aa1c8e4c4548909.tar.gz cryptography-29ffbd94d2c97ec46950af0e4aa1c8e4c4548909.tar.bz2 cryptography-29ffbd94d2c97ec46950af0e4aa1c8e4c4548909.zip |
Merge pull request #450 from reaperhulk/fix-444
How to link against homebrew OpenSSL on OS X
Diffstat (limited to 'docs/hazmat/backends')
-rw-r--r-- | docs/hazmat/backends/openssl.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/hazmat/backends/openssl.rst b/docs/hazmat/backends/openssl.rst index a1f2d28a..d305520a 100644 --- a/docs/hazmat/backends/openssl.rst +++ b/docs/hazmat/backends/openssl.rst @@ -40,4 +40,19 @@ You'll also need to generate your own ``openssl.ld`` file. For example:: You should replace the version string on the first line as appropriate for your build. +Using your own OpenSSL on OS X +------------------------------ + +To link cryptography against a custom version of OpenSSL you'll need to set +``ARCHFLAGS``, ``LDFLAGS``, and ``CFLAGS``. OpenSSL can be installed via +`Homebrew`_:: + + brew install openssl + +Then install cryptography linking against the brewed version:: + + env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/usr/local/opt/openssl/lib" CFLAGS="-I/usr/local/opt/openssl/include" pip install cryptography + + .. _`OpenSSL`: https://www.openssl.org/ +.. _`Homebrew`: http://brew.sh |