Module: wine Branch: master Commit: 747c46a4bc4376141bb43e80dab88e85d3e01e1b URL: https://source.winehq.org/git/wine.git/?a=commit;h=747c46a4bc4376141bb43e80d...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Feb 28 14:52:40 2020 +0100
winegcc: Don't pass ld command to winebuild when building PE file.
It's not used anyway.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 a5519352dd..20c72ec3c5 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -1157,7 +1157,7 @@ static void build(struct options* opts) /* run winebuild to generate the .spec.o file */ spec_args = get_winebuild_args( opts ); strarray_add( spec_args, strmake( "--cc-cmd=%s", build_tool_name( opts, "gcc", CC ))); - strarray_add( spec_args, strmake( "--ld-cmd=%s", build_tool_name( opts, "ld", LD ))); + if (!is_pe) strarray_add( spec_args, strmake( "--ld-cmd=%s", build_tool_name( opts, "ld", LD )));
spec_o_name = get_temp_file(output_name, ".spec.o"); if (opts->force_pointer_size)