From a7076690b186ad876d2d12d9cc4b49cb692feed0 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 27 Aug 2021 12:25:26 +0200 Subject: [PATCH] winegcc: Fix subsystem check to avoid running winebuild on Unix libraries. Signed-off-by: Alexandre Julliard --- 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 710f6dc900d..5f8e6c0e086 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -1387,7 +1387,7 @@ static void build(struct options* opts) else entry_point = opts->entry_point; /* run winebuild to generate the .spec.o file */ - if (!(opts->unix_lib && opts->subsystem && !strcmp(opts->subsystem, "native"))) + if (!(opts->unix_lib && opts->subsystem && !strcmp(opts->subsystem, "unixlib"))) spec_o_name = build_spec_obj( opts, spec_file, output_file, files, lib_dirs, entry_point ); if (fake_module) return; /* nothing else to do */