diff options
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 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"); |