summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-07-31 16:27:52 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-07-31 16:27:52 -0700
commit23028898b47708f453141a31af7d2c4c2c85b11a (patch)
tree6a1ddfef407bb5c2a51132b70b4c0b1b81b0822e
parent766bb66c6985a58e154faf64a7f37cd2200243d0 (diff)
downloadssh2-rs-23028898b47708f453141a31af7d2c4c2c85b11a.zip
Really fix lib name on windows
-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 b693386..b4aad25 100644
--- a/libssh2-sys/build.rs
+++ b/libssh2-sys/build.rs
@@ -34,6 +34,10 @@ fn main() {
println!("cargo:rustc-link-lib=bcrypt");
println!("cargo:rustc-link-lib=crypt32");
println!("cargo:rustc-link-lib=user32");
+ }
+
+ // msvc generates libssh2.lib, everywhere else generates libssh2.a
+ if target.contains("msvc") {
println!("cargo:rustc-link-lib=static=libssh2");
} else {
println!("cargo:rustc-link-lib=static=ssh2");