Commit 9e29287a authored by Steven Fackler's avatar Steven Fackler
Browse files

Treat empty OPENSSL_LIBS as no libraries

parent 62afbbe1
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -85,7 +85,13 @@ fn main() {

    let libs_env = env("OPENSSL_LIBS");
    let libs = match libs_env.as_ref().and_then(|s| s.to_str()) {
        Some(ref v) => v.split(':').collect(),
        Some(ref v) => {
            if v.is_empty() {
                vec![]
            } else {
                v.split(':').collect()
            }
        }
        None => match version {
            Version::Openssl10x if target.contains("windows") => vec!["ssleay32", "libeay32"],
            Version::Openssl11x if target.contains("windows-msvc") => vec!["libssl", "libcrypto"],