forked from Mirrors/wine-wine
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: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>feature/deterministic
parent
2dee9b9874
commit
66aa39d959
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue