From 76cad11b646c9de54150133cf8447b27918d2c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Em=C4=ABls?= Date: Fri, 29 Jun 2018 19:17:09 +0100 Subject: [PATCH] Link all needed system libraries on Windows, when building statically --- openssl-sys/Cargo.toml | 2 +- openssl-sys/build/main.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/openssl-sys/Cargo.toml b/openssl-sys/Cargo.toml index 760b3b502..b48d3055b 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 ", "Steven Fackler "] license = "MIT" diff --git a/openssl-sys/build/main.rs b/openssl-sys/build/main.rs index b8541fca6..24f690183 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"); } } -- GitLab