aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/backends
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-01-10 00:26:07 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-01-24 10:21:57 -0600
commit57e280b0f87096238b5cf5590e1157d433f6f049 (patch)
tree36c31784e95b386ab5cbabc3ac41e7d84cfd60c3 /docs/hazmat/backends
parentadbe0801270ac5ba247b78568ad42381419193d2 (diff)
downloadcryptography-57e280b0f87096238b5cf5590e1157d433f6f049.tar.gz
cryptography-57e280b0f87096238b5cf5590e1157d433f6f049.tar.bz2
cryptography-57e280b0f87096238b5cf5590e1157d433f6f049.zip
add doc info about how to link against homebrew OpenSSL on OS X
Diffstat (limited to 'docs/hazmat/backends')
-rw-r--r--docs/hazmat/backends/openssl.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/hazmat/backends/openssl.rst b/docs/hazmat/backends/openssl.rst
index a1f2d28a..355a1ebb 100644
--- a/docs/hazmat/backends/openssl.rst
+++ b/docs/hazmat/backends/openssl.rst
@@ -40,4 +40,15 @@ 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``.
+
+An example using a `Homebrew`_ OpenSSL installation::
+
+ 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