Commit 66aa39d9 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winegcc: Use libgcc only on mingw target.

It's not available for msvc, but we get all we need from importlibs there. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 2dee9b98
...@@ -1282,7 +1282,7 @@ static void build(struct options* opts) ...@@ -1282,7 +1282,7 @@ static void build(struct options* opts)
/* link everything together now */ /* link everything together now */
link_args = get_link_args( opts, output_name ); link_args = get_link_args( opts, output_name );
if ((opts->nodefaultlibs || opts->use_msvcrt) && is_pe) if ((opts->nodefaultlibs || opts->use_msvcrt) && opts->target_platform == PLATFORM_MINGW)
{ {
libgcc = find_libgcc(opts->prefix, link_args); libgcc = find_libgcc(opts->prefix, link_args);
if (!libgcc) libgcc = "-lgcc"; if (!libgcc) libgcc = "-lgcc";
......
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