summaryrefslogtreecommitdiff
path: root/libssh2-sys/build.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-07-31 16:32:04 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-07-31 16:33:03 -0700
commita35b594fe8269ce9bdfdf1e5d9460b905365abd4 (patch)
treefe3a2a4935bf1284dadc383a0caa67e1d31165c0 /libssh2-sys/build.rs
parent23028898b47708f453141a31af7d2c4c2c85b11a (diff)
downloadssh2-rs-a35b594fe8269ce9bdfdf1e5d9460b905365abd4.zip
Force zlib to be found on mingw
Diffstat (limited to 'libssh2-sys/build.rs')
-rw-r--r--libssh2-sys/build.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/libssh2-sys/build.rs b/libssh2-sys/build.rs
index b4aad25..9e27674 100644
--- a/libssh2-sys/build.rs
+++ b/libssh2-sys/build.rs
@@ -18,6 +18,10 @@ fn main() {
let dst = PathBuf::from(env::var_os("OUT_DIR").unwrap());
if target.contains("windows") {
cfg.define("CRYPTO_BACKEND", "WinCNG");
+
+ if target.contains("-gnu") {
+ cfg.define("ZLIB_INCLUDE_DIR", "/");
+ }
} else {
cfg.define("CRYPTO_BACKEND", "OpenSSL");
}