winegcc: Make sure the Wine library paths take precedence in Wine mode.

oldstable
Alexandre Julliard 2006-07-17 14:07:11 +02:00
parent ee1a5bd6a5
commit 5557c71f7f
1 changed files with 3 additions and 1 deletions

View File

@ -471,16 +471,18 @@ static void build(struct options* opts)
else output_name = output_file;
/* prepare the linking path */
lib_dirs = strarray_dup(opts->lib_dirs);
if (!opts->wine_objdir)
{
lib_dirs = strarray_dup(opts->lib_dirs);
for ( j = 0; j < sizeof(stdlibpath)/sizeof(stdlibpath[0]); j++ )
strarray_add(lib_dirs, stdlibpath[j]);
}
else
{
lib_dirs = strarray_alloc();
strarray_add(lib_dirs, strmake("%s/dlls", opts->wine_objdir));
strarray_add(lib_dirs, strmake("%s/libs/wine", opts->wine_objdir));
strarray_addall(lib_dirs, opts->lib_dirs);
}
/* mark the files with their appropriate type */