about summary refs log tree commit diff stats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rwxr-xr-xsrc/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 22bb6721..b942f978 100755
--- a/src/main.c
+++ b/src/main.c
@@ -1379,7 +1379,7 @@ int main(int argc, const char **argv, char **env) {
     LoadEnvVars(my_context);
     // Append ld_list if it exist
     if(ld_libs_args!=-1)
-        AppendList(&my_context->box64_ld_lib, argv[ld_libs_args], 1);
+        PrependList(&my_context->box64_ld_lib, argv[ld_libs_args], 1);
 
     my_context->box64path = ResolveFile(argv[0], &my_context->box64_path);
     // prepare all other env. var