diff options
| author | Emīls <[email protected]> | 2018-06-29 19:17:09 +0100 |
|---|---|---|
| committer | Emīls <[email protected]> | 2018-06-29 19:35:16 +0100 |
| commit | 76cad11b646c9de54150133cf8447b27918d2c7e (patch) | |
| tree | ea93340edbeba58392079dfb835c2eadb303e8c2 /openssl-sys | |
| parent | Merge pull request #953 from sfackler/sfackler-patch-1 (diff) | |
| download | rust-openssl-76cad11b646c9de54150133cf8447b27918d2c7e.tar.xz rust-openssl-76cad11b646c9de54150133cf8447b27918d2c7e.zip | |
Link all needed system libraries on Windows, when building statically
Diffstat (limited to 'openssl-sys')
| -rw-r--r-- | openssl-sys/Cargo.toml | 2 | ||||
| -rw-r--r-- | openssl-sys/build/main.rs | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/openssl-sys/Cargo.toml b/openssl-sys/Cargo.toml index 760b3b50..b48d3055 100644 --- a/openssl-sys/Cargo.toml +++ b/openssl-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "openssl-sys" -version = "0.9.33" +version = "0.9.34" authors = ["Alex Crichton <[email protected]>", "Steven Fackler <[email protected]>"] license = "MIT" diff --git a/openssl-sys/build/main.rs b/openssl-sys/build/main.rs index b8541fca..24f69018 100644 --- a/openssl-sys/build/main.rs +++ b/openssl-sys/build/main.rs @@ -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"); } } |