From 22da105b4d4d8b2b91e88b1af3b270852fbe9334 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Mon, 19 Apr 2010 22:33:40 +0200 Subject: [PATCH] winegcc: When specifying -m32, force i386 cpu when compiling on x86_64 boxes. --- tools/winegcc/winegcc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c index a5f700474d5..48f39bcdd21 100644 --- a/tools/winegcc/winegcc.c +++ b/tools/winegcc/winegcc.c @@ -1257,6 +1257,8 @@ int main(int argc, char **argv) opts.unicode_app = 1; else if (strcmp("-m32", argv[i]) == 0) { + if (opts.target_cpu == CPU_x86_64) + opts.target_cpu = CPU_x86; opts.force_pointer_size = 4; raw_linker_arg = 1; }