winegcc: Use -soname for unix libs.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-05-28 19:01:10 +02:00 committed by Alexandre Julliard
parent 8285f61603
commit 388c91042c
1 changed files with 1 additions and 0 deletions

View File

@ -594,6 +594,7 @@ static strarray *get_link_args( struct options *opts, const char *output_name )
}
if (!try_link( opts->prefix, link_args, "-Wl,-z,max-page-size=0x1000"))
strarray_add( flags, "-Wl,-z,max-page-size=0x1000");
if (opts->unix_lib) strarray_add( flags, strmake( "-Wl,-soname,%s.so", output_name ));
break;
}