winegcc: Don't use the library full name for .so libs.
This commit is contained in:
parent
1e3b6b1888
commit
1cb75101e6
|
@ -401,8 +401,6 @@ static void add_library( strarray *lib_dirs, strarray *files, const char *librar
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case file_so:
|
case file_so:
|
||||||
strarray_add(files, strmake("-s%s", fullname));
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
/* keep it anyway, the linker may know what to do with it */
|
/* keep it anyway, the linker may know what to do with it */
|
||||||
strarray_add(files, strmake("-l%s", library));
|
strarray_add(files, strmake("-l%s", library));
|
||||||
|
@ -628,9 +626,9 @@ static void build(struct options* opts)
|
||||||
switch(files->base[j][1])
|
switch(files->base[j][1])
|
||||||
{
|
{
|
||||||
case 'l':
|
case 'l':
|
||||||
|
case 's':
|
||||||
strarray_add(link_args, strmake("-l%s", name));
|
strarray_add(link_args, strmake("-l%s", name));
|
||||||
break;
|
break;
|
||||||
case 's':
|
|
||||||
case 'a':
|
case 'a':
|
||||||
case 'o':
|
case 'o':
|
||||||
strarray_add(link_args, name);
|
strarray_add(link_args, name);
|
||||||
|
|
Loading…
Reference in New Issue