about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-03 17:06:00 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-03 17:06:00 +0100
commit9aabe9c97fecb77f70361e0e0df8380f1489fc81 (patch)
tree298c3b0f79079020b12dd2ed1a9a26ea136b2e81 /src/main.c
parent745a68f556537aaaaa8ee25a76b5757d3d3f7494 (diff)
downloadbox64-9aabe9c97fecb77f70361e0e0df8380f1489fc81.tar.gz
box64-9aabe9c97fecb77f70361e0e0df8380f1489fc81.zip
Added rt and pthread wrapped lib
Diffstat (limited to 'src/main.c')
-rwxr-xr-xsrc/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 17b94f9b..b67b9789 100755
--- a/src/main.c
+++ b/src/main.c
@@ -858,6 +858,12 @@ int main(int argc, const char **argv, const char **env) {
         }
     }
     FreeCollection(&ld_preload);
+    // Call librarian to load all dependant elf
+    if(LoadNeededLibs(elf_header, my_context->maplib, &my_context->neededlibs, 0, my_context, emu)) {
+        printf_log(LOG_NONE, "Error: loading needed libs in elf %s\n", my_context->argv[0]);
+        FreeBox64Context(&my_context);
+        return -1;
+    }
 
     return 0;
 }