From d7bffd0d883edd709c40417f092725831241ca83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ravi=20S=2E=20R=C4=81mphal?= Date: Sun, 17 May 2026 17:39:52 -0400 Subject: [PATCH] fix: add lib64 to link search path for Fedora/RHEL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On distros where cmake's GNUInstallDirs defaults CMAKE_INSTALL_LIBDIR to lib64, the vendored opus build succeeds but linking fails because the search path only includes lib/. Adding lib64 as an additional search path fixes this — non-existent -L paths are silently ignored by the linker, so no behavioral change on platforms that use lib/. --- build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/build.rs b/build.rs index 21c6d57..03cdd7b 100644 --- a/build.rs +++ b/build.rs @@ -78,6 +78,7 @@ fn build_bundled_and_link(opts: &BuildOptions) { let dst = build_bundled(opts.dred_enabled, opts.avx_allowed); println!("cargo:rustc-link-search=native={}/lib", dst.display()); + println!("cargo:rustc-link-search=native={}/lib64", dst.display()); println!("cargo:rustc-link-lib=static=opus"); }