Commit 6254c188 authored by Michael Neumann's avatar Michael Neumann
Browse files

Fix build on DragonFly

DragonFly has libressl/openssl in ports (/usr/local). With this commit,
rust-openssl builds out of the box given that either libressl or openssl is
installed (which is usually the case).

Tested on DragonFly 5.9-DEVELOPMENT with libressl-3.0.2.
parent 1994a523
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -60,6 +60,11 @@ fn find_openssl_dir(target: &str) -> OsString {
        return OsString::from("/usr");
    }

    // DragonFly has libressl (or openssl) in ports, but this doesn't include a pkg-config file
    if host == target && target.contains("dragonfly") {
        return OsString::from("/usr/local");
    }

    let mut msg = format!(
        "