Skip to content

fix: add lib64 to link search path for Fedora/RHEL#4

Open
rramphal wants to merge 1 commit into
Deniskore:mainfrom
rramphal:fix/lib64-link-search-path
Open

fix: add lib64 to link search path for Fedora/RHEL#4
rramphal wants to merge 1 commit into
Deniskore:mainfrom
rramphal:fix/lib64-link-search-path

Conversation

@rramphal
Copy link
Copy Markdown

On Fedora, RHEL, and other distros where cmake's GNUInstallDirs defaults CMAKE_INSTALL_LIBDIR to lib64, the vendored opus build compiles successfully but linking fails:

error: could not find native static library opus, perhaps an -L flag is missing?

build.rs emits cargo:rustc-link-search=native={dst}/lib, but cmake installs libopus.a to {dst}/lib64/.

Fix: Add lib64 as an additional search path. A non-existent -L path is silently ignored by the linker, so this has no behavioral change on platforms that already use lib/.

Environment: Fedora 42, cmake 3.31, GCC 15, Rust nightly, opus-codec 0.1.2.

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/.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant