From 86f0a0b82aa01cee172e93300c3cbd8b483ea701 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Camguilhem Date: Tue, 27 Jun 2023 16:19:26 +0200 Subject: [PATCH] https://github.com/sfackler/rust-openssl/pull/1983#discussion_r1243795604 --- openssl-sys/build/find_normal.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/openssl-sys/build/find_normal.rs b/openssl-sys/build/find_normal.rs index 16d190878..99e84ce53 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"); } -- GitLab