summaryrefslogtreecommitdiff
path: root/libssh2-sys
diff options
context:
space:
mode:
authorTim <tdhutt@gmail.com>2018-07-02 16:02:11 +0100
committerGitHub <noreply@github.com>2018-07-02 16:02:11 +0100
commit0906727b69f357afcb0f134f0a48fc1a9e4e68bb (patch)
treeb26a0e107cda8f1e145aa210a1d38af980139e35 /libssh2-sys
parenta35a60aafedf101dc67ff24bab2cc5817f292fb7 (diff)
downloadssh2-rs-0906727b69f357afcb0f134f0a48fc1a9e4e68bb.zip
Add comment about loading two copies of libssl
Diffstat (limited to 'libssh2-sys')
-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 {