[PATCH] winegcc: --out-implib needs to propagate -m32/-m64 to winebuild.

Kevin Puetz PuetzKevinA at JohnDeere.com
Wed Feb 2 14:36:49 CST 2022


This was already passed through for linking, and for spec.o files,
but was overlooked when implementing -Wl,--out-implib

Signed-off-by: Kevin Puetz <PuetzKevinA at JohnDeere.com>
---
 tools/winegcc/winegcc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index 0aafca1271a..aa8c63f5457 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -1408,6 +1408,8 @@ static void build(struct options* opts)
         strarray_add( &implib_args, strmake( "--cc-cmd=%s", strarray_tostring( tool, " " )));
         tool = build_tool_name( opts, TOOL_LD );
         strarray_add( &implib_args, strmake( "--ld-cmd=%s", strarray_tostring( tool, " " )));
+        if (opts->force_pointer_size)
+            strarray_add(&implib_args, strmake("-m%u", 8 * opts->force_pointer_size ));
 
         strarray_add(&implib_args, "--implib");
         strarray_add(&implib_args, "-o");
-- 
2.34.1




More information about the wine-devel mailing list