Merge pull request #1246 from mneumann/fix-build-on-dragonflybsd

Fix build on DragonFly
This commit is contained in:
Steven Fackler 2020-03-21 10:30:06 -04:00 committed by GitHub
commit dbc5459d63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,11 @@ fn find_openssl_dir(target: &str) -> OsString {
return OsString::from("/usr"); 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!( let mut msg = format!(
" "