mirror of
https://github.com/isar/rusqlite.git
synced 2025-04-21 17:37:48 +08:00
fix: build should support lib64 dir for OpenSSL3.x
This commit is contained in:
parent
6218aa40ad
commit
a7d5d33548
@ -167,7 +167,14 @@ mod build_bundled {
|
||||
}
|
||||
}
|
||||
Some(openssl_dir) => {
|
||||
let lib_dir = lib_dir.unwrap_or_else(|| openssl_dir.join("lib"));
|
||||
let lib_dir = lib_dir.unwrap_or_else(|| {
|
||||
// OpenSSL 3.0 now puts it's libraries in lib64/ by default,
|
||||
// check for both it and lib/.
|
||||
if openssl_dir.join("lib64").exists() {
|
||||
return openssl_dir.join("lib64");
|
||||
}
|
||||
openssl_dir.join("lib")
|
||||
});
|
||||
let inc_dir = inc_dir.unwrap_or_else(|| openssl_dir.join("include"));
|
||||
|
||||
assert!(
|
||||
|
Loading…
x
Reference in New Issue
Block a user