diff --git a/openssl-sys/build/find_normal.rs b/openssl-sys/build/find_normal.rs index 1439e9ab3..89236063a 100644 --- a/openssl-sys/build/find_normal.rs +++ b/openssl-sys/build/find_normal.rs @@ -92,8 +92,11 @@ fn find_openssl_dir(target: &str) -> OsString { try_pkg_config(); try_vcpkg(); - // FreeBSD and OpenBSD ship with Libre|OpenSSL but don't include a pkg-config file - if host == target && (target.contains("freebsd") || target.contains("openbsd")) { + // FreeBSD, OpenBSD, and AIX ship with Libre|OpenSSL + // TODO: see of this is still needed for OpenBSD + if host == target + && (target.contains("freebsd") || target.contains("openbsd") || target.contains("aix")) + { return OsString::from("/usr"); }