Connor Abbott : winegcc: Support -Wl,--start-group and -Wl,--end-group.
Module: wine Branch: master Commit: b1fb07e1889ae6ca2cce4a897e140a9ae37a56bd URL: https://source.winehq.org/git/wine.git/?a=commit;h=b1fb07e1889ae6ca2cce4a897... Author: Connor Abbott <cwabbott0(a)gmail.com> Date: Fri Jul 2 11:48:00 2021 +0200 winegcc: Support -Wl,--start-group and -Wl,--end-group. These arguments need to be in the correct position so they need to go in the files array. Signed-off-by: Connor Abbott <cwabbott0(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- tools/winegcc/winegcc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c index ebc60c1a2c8..fd2d2c2a794 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -2030,7 +2030,10 @@ 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;
participants (1)
-
Alexandre Julliard