Commit 3034c287 authored by Alexandre Julliard's avatar Alexandre Julliard

Put the .spec.o file first and the so libraries last on the link

command line.
parent bcb5d6b8
......@@ -497,20 +497,21 @@ static void build(struct options* opts)
for ( j = 0; j < lib_paths->size; j++ )
strarray_add(link_args, lib_paths->base[j]);
strarray_add(link_args, "-lwine");
strarray_add(link_args, "-lm");
for ( j = 0; j < so_libs->size; j++ )
strarray_add(link_args, so_libs->base[j]);
strarray_add(link_args, spec_o_name);
for ( j = 0; j < obj_files->size; j++ )
strarray_add(link_args, obj_files->base[j]);
strarray_add(link_args, spec_o_name);
for ( j = 0; j < arh_libs->size; j++ )
strarray_add(link_args, arh_libs->base[j]);
for ( j = 0; j < so_libs->size; j++ )
strarray_add(link_args, so_libs->base[j]);
strarray_add(link_args, "-lwine");
strarray_add(link_args, "-lm");
strarray_add(link_args, "-lc");
spawn(link_args);
/* create the loader script */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment