aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2018-06-29 12:34:27 -0700
committerGitHub <[email protected]>2018-06-29 12:34:27 -0700
commit3524ac09b3c81645cc07444a61e63b7ed27fcc07 (patch)
treeea93340edbeba58392079dfb835c2eadb303e8c2
parentMerge pull request #953 from sfackler/sfackler-patch-1 (diff)
parentLink all needed system libraries on Windows, when building statically (diff)
downloadrust-openssl-3524ac09b3c81645cc07444a61e63b7ed27fcc07.tar.xz
rust-openssl-3524ac09b3c81645cc07444a61e63b7ed27fcc07.zip
Merge pull request #954 from pinkisemils/output-all-msvc-linker-args
Link all needed system libraries on Windows, when building statically
-rw-r--r--openssl-sys/Cargo.toml2
-rw-r--r--openssl-sys/build/main.rs4
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");
}
}