diff options
| author | Steven Fackler <[email protected]> | 2018-06-09 09:35:01 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2018-06-09 09:35:01 -0700 |
| commit | 9bf748befbe37a45748b9ff0f0198f70afda2a16 (patch) | |
| tree | 826b883d464d5417b3307e6fa4516a05c38fe346 /openssl-sys | |
| parent | Release openssl v0.10.10 (diff) | |
| download | rust-openssl-9bf748befbe37a45748b9ff0f0198f70afda2a16.tar.xz rust-openssl-9bf748befbe37a45748b9ff0f0198f70afda2a16.zip | |
Link to gdi32 on windows
Closes #935
Diffstat (limited to 'openssl-sys')
| -rw-r--r-- | openssl-sys/build/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl-sys/build/main.rs b/openssl-sys/build/main.rs index e2b3108c..b8541fca 100644 --- a/openssl-sys/build/main.rs +++ b/openssl-sys/build/main.rs @@ -100,6 +100,10 @@ fn main() { for lib in libs.into_iter() { println!("cargo:rustc-link-lib={}={}", kind, lib); } + + if kind == "static" && target.contains("windows") { + println!("cargo:rustc-link-lib=dylib=gdi32"); + } } fn find_openssl_dir(target: &str) -> OsString { |