summaryrefslogtreecommitdiff
path: root/libssh2-sys/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libssh2-sys/build.rs')
-rw-r--r--libssh2-sys/build.rs3
1 files changed, 3 insertions, 0 deletions
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 {