From d5bd85b3e525cae204fd4845f7600434a0f28dc1 Mon Sep 17 00:00:00 2001 From: Felix Hanau Date: Tue, 18 Mar 2025 11:16:43 -0400 Subject: [PATCH] Document linking to C++ standard library (#335) This was added in #264, but not documented so far. --- boring/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/boring/src/lib.rs b/boring/src/lib.rs index 7c870c5d..a54e2bfa 100644 --- a/boring/src/lib.rs +++ b/boring/src/lib.rs @@ -61,6 +61,13 @@ //! Note that `BORING_BSSL_PRECOMPILED_BCM_O` is never used, as linking BoringSSL with precompiled non-FIPS //! module is not supported. //! +//! ## Linking with a C++ standard library +//! +//! Recent versions of boringssl require some C++ standard library features, so boring needs to link +//! with a STL implementation. This can be controlled using the BORING_BSSL_RUST_CPPLIB variable. If +//! no library is specified, libc++ is used on macOS and iOS whereas libstdc++ is used on other Unix +//! systems. +//! //! # Optional patches //! //! ## Raw Public Key