winegcc: Build Unix libraries as dynamic libs on macOS.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-08-11 21:38:20 +02:00
parent 91494ae6f2
commit ada8bf034a
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ static strarray *get_link_args( struct options *opts, const char *output_name )
switch (opts->target_platform) switch (opts->target_platform)
{ {
case PLATFORM_APPLE: case PLATFORM_APPLE:
strarray_add( flags, "-bundle" ); strarray_add( flags, opts->unix_lib ? "-dynamiclib" : "-bundle" );
strarray_add( flags, "-multiply_defined" ); strarray_add( flags, "-multiply_defined" );
strarray_add( flags, "suppress" ); strarray_add( flags, "suppress" );
if (opts->target_cpu == CPU_POWERPC) if (opts->target_cpu == CPU_POWERPC)