winegcc: Skip --no-default-config in find_libgcc.

The default config provides a valid way of defining the default compiler’s libgcc (or its equivalent).
Future llvm-mingw will use it instead of shell wrappers.
This commit is contained in:
Jacek Caban 2024-10-21 11:46:59 +02:00 committed by Alexandre Julliard
parent 1997da790d
commit 0872e3c1ff
Notes: Alexandre Julliard 2024-11-04 22:25:22 +01:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/wine/merge_requests/6765

View file

@ -870,13 +870,16 @@ static const char *find_libgcc(struct strarray prefix, struct strarray link_tool
const char *out = make_temp_file( "find_libgcc", ".out" );
const char *err = make_temp_file( "find_libgcc", ".err" );
struct strarray link = empty_strarray;
int sout = -1, serr = -1;
int sout = -1, serr = -1, i;
char *libgcc, *p;
struct stat st;
size_t cnt;
int ret;
strarray_addall( &link, link_tool );
for (i = 0; i < link_tool.count; i++)
if (strcmp(link_tool.str[i], "--no-default-config" ))
strarray_add( &link, link_tool.str[i] );
strarray_add( &link, "-print-libgcc-file-name" );
sout = dup( fileno(stdout) );