Skip to content

Commit d5bd85b

Browse files
authored
Document linking to C++ standard library (#335)
This was added in #264, but not documented so far.
1 parent 1163005 commit d5bd85b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

boring/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@
6161
//! Note that `BORING_BSSL_PRECOMPILED_BCM_O` is never used, as linking BoringSSL with precompiled non-FIPS
6262
//! module is not supported.
6363
//!
64+
//! ## Linking with a C++ standard library
65+
//!
66+
//! Recent versions of boringssl require some C++ standard library features, so boring needs to link
67+
//! with a STL implementation. This can be controlled using the BORING_BSSL_RUST_CPPLIB variable. If
68+
//! no library is specified, libc++ is used on macOS and iOS whereas libstdc++ is used on other Unix
69+
//! systems.
70+
//!
6471
//! # Optional patches
6572
//!
6673
//! ## Raw Public Key

0 commit comments

Comments
 (0)