diff --git a/openssl-sys/build/find_normal.rs b/openssl-sys/build/find_normal.rs index 16d19087835295a99a7bb04d6555b3eb3c1ea79f..99e84ce531592d5543a54f6a8e2888e55004081e 100644 --- a/openssl-sys/build/find_normal.rs +++ b/openssl-sys/build/find_normal.rs @@ -92,13 +92,8 @@ fn find_openssl_dir(target: &str) -> OsString { try_pkg_config(); try_vcpkg(); - // FreeBSD ships with OpenSSL but doesn't include a pkg-config file :( - if host == target && target.contains("freebsd") { - return OsString::from("/usr"); - } - - // OpenBSD ships with LibreSSL but doesn't include a pkg-config file :( - if host == target && target.contains("openbsd") { + // FreeBSD and OpenBSD ship with Libre|OpenSSL but don't include a pkg-config file + if host == target && target.contains("freebsd") || target.contains("openbsd")) { return OsString::from("/usr"); }