mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
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:
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
1 changed files with 5 additions and 2 deletions
|
@ -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) );
|
||||
|
|
Loading…
Reference in a new issue