[PATCH 4/6] [WineGcc]: when specifying -m32, force i386 cpu when compiling on x86_64 boxes

Eric Pouech eric.pouech at orange.fr
Mon Apr 19 15:33:40 CDT 2010




A+
---

 tools/winegcc/winegcc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index a5f7004..48f39bc 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;
                     }






More information about the wine-patches mailing list