Link all needed system libraries on Windows, when building statically

This commit is contained in:
Emīls 2018-06-29 19:17:09 +01:00
parent 361c9c336e
commit 76cad11b64
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "openssl-sys"
version = "0.9.33"
version = "0.9.34"
authors = ["Alex Crichton <alex@alexcrichton.com>",
"Steven Fackler <sfackler@gmail.com>"]
license = "MIT"

View File

@ -103,6 +103,10 @@ fn main() {
if kind == "static" && target.contains("windows") {
println!("cargo:rustc-link-lib=dylib=gdi32");
println!("cargo:rustc-link-lib=dylib=user32");
println!("cargo:rustc-link-lib=dylib=crypt32");
println!("cargo:rustc-link-lib=dylib=ws2_32");
println!("cargo:rustc-link-lib=dylib=advapi32");
}
}