From 0906727b69f357afcb0f134f0a48fc1a9e4e68bb Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 2 Jul 2018 16:02:11 +0100 Subject: Add comment about loading two copies of libssl --- libssh2-sys/build.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libssh2-sys/build.rs') diff --git a/libssh2-sys/build.rs b/libssh2-sys/build.rs index df9a0f2..1f5ed1a 100644 --- a/libssh2-sys/build.rs +++ b/libssh2-sys/build.rs @@ -18,6 +18,9 @@ fn main() { register_dep("Z"); register_dep("OPENSSL"); + // The system copy of libssh2 is not used by default because it + // can lead to having two copies of libssl loaded at once. + // See https://github.com/alexcrichton/ssh2-rs/pull/88 if env::var("LIBSSH2_SYS_USE_PKG_CONFIG").is_ok() { if let Ok(lib) = pkg_config::find_library("libssh2") { for path in &lib.include_paths { -- cgit v1.2.3