diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-07-31 16:32:04 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-07-31 16:33:03 -0700 |
commit | a35b594fe8269ce9bdfdf1e5d9460b905365abd4 (patch) | |
tree | fe3a2a4935bf1284dadc383a0caa67e1d31165c0 /libssh2-sys/build.rs | |
parent | 23028898b47708f453141a31af7d2c4c2c85b11a (diff) | |
download | ssh2-rs-a35b594fe8269ce9bdfdf1e5d9460b905365abd4.zip |
Force zlib to be found on mingw
Diffstat (limited to 'libssh2-sys/build.rs')
-rw-r--r-- | libssh2-sys/build.rs | 4 |
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"); } |