Skip to content

Commit

Permalink
Check lib64 before lib when linking
Browse files Browse the repository at this point in the history
Depending on the linux distro, lib will contain 32bit libraries.
We want the 64bit version of libraries if they exist.
  • Loading branch information
bhansconnect committed Oct 30, 2023
1 parent 5fed224 commit e099dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/compiler/build/src/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -891,8 +891,8 @@ fn link_linux(
lib_dirs.extend([
usr_lib_arch_path,
lib_arch_path,
strs_to_path(&["/usr", "lib"]),
strs_to_path(&["/usr", "lib64"]),
strs_to_path(&["/usr", "lib"]),
]);

// Look for the libraries we'll need
Expand Down

0 comments on commit e099dd8

Please sign in to comment.