Module: wine Branch: master Commit: 22da105b4d4d8b2b91e88b1af3b270852fbe9334 URL: http://source.winehq.org/git/wine.git/?a=commit;h=22da105b4d4d8b2b91e88b1af3...
Author: Eric Pouech eric.pouech@orange.fr Date: Mon Apr 19 22:33:40 2010 +0200
winegcc: When specifying -m32, force i386 cpu when compiling on x86_64 boxes.
---
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; }