[PATCH 3/4] winegcc: Support -Wl,--start-group and -Wl,--end-group
Connor Abbott
cwabbott0 at gmail.com
Fri Jul 2 04:48:00 CDT 2021
These arguments need to be in the correct position so they need to go in
the files array.
Signed-off-by: Connor Abbott <cwabbott0 at gmail.com>
---
tools/winegcc/winegcc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index ebc60c1a2c8..b677457acf5 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -2030,7 +2030,7 @@ int main(int argc, char **argv)
opts.debug_file = strdup( Wl->base[++j] );
continue;
}
- if (!strcmp(Wl->base[j], "--whole-archive") || !strcmp(Wl->base[j], "--no-whole-archive"))
+ if (!strcmp(Wl->base[j], "--whole-archive") || !strcmp(Wl->base[j], "--no-whole-archive") || !strcmp(Wl->base[j], "--start-group") || !strcmp(Wl->base[j], "--end-group"))
{
strarray_add( opts.files, strmake( "-Wl,%s", Wl->base[j] ));
continue;
--
2.31.1
More information about the wine-devel
mailing list