winegcc: Use explicit library file name when loading cross libraries.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2016-03-28 12:18:59 +09:00
parent 444025d7fb
commit 33147c9475
1 changed files with 1 additions and 1 deletions

View File

@ -958,7 +958,7 @@ static void build(struct options* opts)
strarray_add(link_args, name); strarray_add(link_args, name);
break; break;
case 'a': case 'a':
if (strchr(name, '/')) if (!opts->lib_suffix && strchr(name, '/'))
{ {
/* turn the path back into -Ldir -lfoo options /* turn the path back into -Ldir -lfoo options
* this makes sure that we use the specified libs even * this makes sure that we use the specified libs even