about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-04-16 15:36:50 +0200
committerptitSeb <sebastien.chev@gmail.com>2023-04-16 15:36:50 +0200
commite50094e10a6975dafa280a010070708ac7d1d1c5 (patch)
treed780d8d1760bd1fbca9eae0275fda38cc221bf8b /src
parent4e74819bacdd66d6f98165eb84b1d002b091ad2e (diff)
downloadbox64-e50094e10a6975dafa280a010070708ac7d1d1c5.tar.gz
box64-e50094e10a6975dafa280a010070708ac7d1d1c5.zip
Prepend ld_library list instead of append
Diffstat (limited to 'src')
-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