Commit 099ba1b4 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winegcc: Use libgcc on Cygwin target.

parent d202e4a3
......@@ -1254,10 +1254,18 @@ static void build(struct options* opts)
/* link everything together now */
link_args = get_link_args( opts, output_name );
if ((opts->nodefaultlibs || opts->use_msvcrt) && opts->target.platform == PLATFORM_MINGW)
if (opts->nodefaultlibs || opts->use_msvcrt)
{
libgcc = find_libgcc(opts->prefix, link_args);
if (!libgcc) libgcc = "-lgcc";
switch (opts->target.platform)
{
case PLATFORM_MINGW:
case PLATFORM_CYGWIN:
libgcc = find_libgcc( opts->prefix, link_args );
if (!libgcc) libgcc = "-lgcc";
break;
default:
break;
}
}
strarray_add(&link_args, "-o");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment