From e099dd8b1c2f17131be2d53a535e1334d31982db Mon Sep 17 00:00:00 2001 From: Brendan Hansknecht Date: Sun, 29 Oct 2023 21:43:15 -0700 Subject: [PATCH] Check lib64 before lib when linking Depending on the linux distro, lib will contain 32bit libraries. We want the 64bit version of libraries if they exist. --- crates/compiler/build/src/link.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/compiler/build/src/link.rs b/crates/compiler/build/src/link.rs index b504eb90812..09b881d52b9 100644 --- a/crates/compiler/build/src/link.rs +++ b/crates/compiler/build/src/link.rs @@ -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