You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
39 lines
1.3 KiB
7 years ago
|
From d8240c00ac455f22952a84b9febb80380d526a93 Mon Sep 17 00:00:00 2001
|
||
|
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||
|
Date: Sat, 14 Jul 2018 09:32:07 +0200
|
||
|
Subject: [PATCH] build.rs: always use pkg-config
|
||
|
|
||
|
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||
|
---
|
||
|
libssh2-sys/build.rs | 13 ++++---------
|
||
|
1 file changed, 4 insertions(+), 9 deletions(-)
|
||
|
|
||
|
diff --git a/libssh2-sys/build.rs b/libssh2-sys/build.rs
|
||
|
index 1f5ed1a..b8509e8 100644
|
||
|
--- a/libssh2-sys/build.rs
|
||
|
+++ b/libssh2-sys/build.rs
|
||
|
@@ -18,16 +18,11 @@ 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 {
|
||
|
- println!("cargo:include={}", path.display());
|
||
|
- }
|
||
|
- return
|
||
|
+ if let Ok(lib) = pkg_config::find_library("libssh2") {
|
||
|
+ for path in &lib.include_paths {
|
||
|
+ println!("cargo:include={}", path.display());
|
||
|
}
|
||
|
+ return
|
||
|
}
|
||
|
|
||
|
if !Path::new("libssh2/.git").exists() {
|
||
|
--
|
||
|
2.18.0
|
||
|
|