Link to gdi32 on windows

Closes #935
This commit is contained in:
Steven Fackler 2018-06-09 09:35:01 -07:00
parent 6834b97ff4
commit 9bf748befb
1 changed files with 4 additions and 0 deletions

View File

@ -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 {