From 57e280b0f87096238b5cf5590e1157d433f6f049 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 10 Jan 2014 00:26:07 -0600 Subject: add doc info about how to link against homebrew OpenSSL on OS X --- docs/hazmat/backends/openssl.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs/hazmat/backends') 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 -- cgit v1.2.3 From 8caeb8ddde096686225f476146134e2ec65190b6 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 10 Jan 2014 12:38:14 -0600 Subject: add env so homebrew instructions work in fish as well as bash on OS X --- docs/hazmat/backends/openssl.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/hazmat/backends') diff --git a/docs/hazmat/backends/openssl.rst b/docs/hazmat/backends/openssl.rst index 355a1ebb..a2417cf2 100644 --- a/docs/hazmat/backends/openssl.rst +++ b/docs/hazmat/backends/openssl.rst @@ -48,7 +48,8 @@ To link cryptography against a custom version of OpenSSL you'll need to set 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 + 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 -- cgit v1.2.3 From 017f0b05ebe6026b0ad0d6205fca6ec1e60540b4 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 24 Jan 2014 10:20:36 -0600 Subject: add instructions on how to install openssl via homebrew --- docs/hazmat/backends/openssl.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'docs/hazmat/backends') diff --git a/docs/hazmat/backends/openssl.rst b/docs/hazmat/backends/openssl.rst index a2417cf2..d305520a 100644 --- a/docs/hazmat/backends/openssl.rst +++ b/docs/hazmat/backends/openssl.rst @@ -44,9 +44,12 @@ 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``. +``ARCHFLAGS``, ``LDFLAGS``, and ``CFLAGS``. OpenSSL can be installed via +`Homebrew`_:: -An example using a `Homebrew`_ OpenSSL installation:: + 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 -- cgit v1.2.3