diff options
| author | Steven Fackler <[email protected]> | 2018-06-09 10:09:38 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-06-09 10:09:38 -0700 |
| commit | 2512c93df2d4cfb7ec69a10d5b8329055e3e1c52 (patch) | |
| tree | 826b883d464d5417b3307e6fa4516a05c38fe346 /openssl-sys | |
| parent | Release openssl v0.10.10 (diff) | |
| parent | Link to gdi32 on windows (diff) | |
| download | rust-openssl-2512c93df2d4cfb7ec69a10d5b8329055e3e1c52.tar.xz rust-openssl-2512c93df2d4cfb7ec69a10d5b8329055e3e1c52.zip | |
Merge pull request #936 from sfackler/windows-static
Add back the gdi32-sys dependency on windows
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 { |