Skip to content

Commit

Permalink
Document cross compilation target == host bugfix.
Browse files Browse the repository at this point in the history
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
  • Loading branch information
jameshilliard committed Jan 9, 2022
1 parent bab6faa commit 1193956
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,18 @@ use ``--no-binary``.
$ pip install cryptography --no-binary cryptography
Cross Compiling
~~~~~~~~~~~~~~~

If you are cross compiling for a target system that has the same target triple
as the build host you should add these variables in your environment to prevent
cargo from linking host build-scripts against the target libraries.

.. code-block:: console
__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly"
CARGO_UNSTABLE_TARGET_APPLIES_TO_HOST="true"
CARGO_TARGET_APPLIES_TO_HOST="false"
Using your own OpenSSL on Linux
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 1193956

Please sign in to comment.