Merge pull request #1100 from nanpuyue/patch-1

fix build err for taget `*-pc-windows-gnu`
This commit is contained in:
Steven Fackler 2019-04-29 19:17:29 -07:00 committed by GitHub
commit d8a9a7fa11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@ fn main() {
let libs = match libs_env.as_ref().and_then(|s| s.to_str()) { let libs = match libs_env.as_ref().and_then(|s| s.to_str()) {
Some(ref v) => v.split(":").collect(), Some(ref v) => v.split(":").collect(),
None => match version { None => match version {
Version::Openssl10x if target.contains("windows") => vec!["ssleay32", "libeay32"], Version::Openssl10x if target.contains("windows-msvc") => vec!["ssleay32", "libeay32"],
Version::Openssl11x if target.contains("windows") => vec!["libssl", "libcrypto"], Version::Openssl11x if target.contains("windows-msvc") => vec!["libssl", "libcrypto"],
_ => vec!["ssl", "crypto"], _ => vec!["ssl", "crypto"],
}, },
}; };