about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-07-12 18:50:59 +0200
committerptitSeb <sebastien.chev@gmail.com>2023-07-12 18:50:59 +0200
commit0224346ed876dc17ac9b61c8612dcfb64465301c (patch)
treef24185273c935534fb1c5d20fbac89d296eed26e /src
parent35366b25a6c9a291e806e2a794318c2780baa836 (diff)
downloadbox64-0224346ed876dc17ac9b61c8612dcfb64465301c.tar.gz
box64-0224346ed876dc17ac9b61c8612dcfb64465301c.zip
Added more path option when searching for x86_64 libraries
Diffstat (limited to 'src')
-rwxr-xr-xsrc/librarian/library.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/librarian/library.c b/src/librarian/library.c
index b3bec1b4..18fbe24f 100755
--- a/src/librarian/library.c
+++ b/src/librarian/library.c
@@ -340,6 +340,13 @@ static void initEmulatedLib(const char* path, library_t *lib, box64context_t* co
             if(FileIsX64ELF(libname))
                 if(loadEmulatedLib(libname, lib, context, verneeded))
                     return;
+            // also try x86_64 variant
+            strcpy(libname, context->box64_ld_lib.paths[i]);
+            strcat(libname, "x86_64/");
+            strcat(libname, path);
+            if(FileIsX64ELF(libname))
+                if(loadEmulatedLib(libname, lib, context, verneeded))
+                    return;            
         }
 }