aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-01-24 09:30:55 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-01-24 09:30:55 -0800
commit29ffbd94d2c97ec46950af0e4aa1c8e4c4548909 (patch)
tree98d0d6c99685a4c1d2033edf61a597007efd64d8
parentadbe0801270ac5ba247b78568ad42381419193d2 (diff)
parent017f0b05ebe6026b0ad0d6205fca6ec1e60540b4 (diff)
downloadcryptography-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
-rw-r--r--docs/hazmat/backends/openssl.rst15
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