Merge pull request #936 from sfackler/windows-static

Add back the gdi32-sys dependency on windows
This commit is contained in:
Steven Fackler 2018-06-09 10:09:38 -07:00 committed by GitHub
commit 2512c93df2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -100,6 +100,10 @@ fn main() {
for lib in libs.into_iter() { for lib in libs.into_iter() {
println!("cargo:rustc-link-lib={}={}", kind, lib); 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 { fn find_openssl_dir(target: &str) -> OsString {