From fd85974138fa6775b193d803d09a8c67c9130dc5 Mon Sep 17 00:00:00 2001 From: southorange0929 Date: Mon, 13 May 2024 15:39:08 +0800 Subject: [PATCH] fix: build should support lib64 dir for OpenSSL3.x --- src/lib.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 6719c449..dc9fbc5d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -597,8 +597,15 @@ impl Build { fs::remove_dir_all(&inner_dir).unwrap(); + let mut lib_dir: PathBuf = install_dir.join("lib"); + // OpenSSL 3.0 now puts it's libraries in lib64/ by default, + // check for both it and lib/. + if install_dir.join("lib64").exists() { + lib_dir = install_dir.join("lib64") + } + Artifacts { - lib_dir: install_dir.join("lib"), + lib_dir: lib_dir, bin_dir: install_dir.join("bin"), include_dir: install_dir.join("include"), libs: libs,