aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Kroll III <henry@comptune.com>2010-04-23 18:32:09 -0700
committerHenry Kroll <henry@hklap.(none)>2010-04-23 18:36:12 -0700
commit4686236091d8ebc2f11c799d0c5a6f8ce36554b5 (patch)
tree35fa0981cd2a3304fee428ac41ed33dae830afa3
parentbe7e339d8a2fbc132262e4a0b94b7c5c54aa89a3 (diff)
downloadtinycc-4686236091d8ebc2f11c799d0c5a6f8ce36554b5.tar.gz
tinycc-4686236091d8ebc2f11c799d0c5a6f8ce36554b5.tar.bz2
i386-win32-tcc fails to build a valid win32 executable if built
on x86_64 using --enable-cross. The easiest way to fix this is to put -m32 in the Makefile. Committer: Henry Kroll <henry@comptune.com> Committer: Henry Kroll <henry@comptune.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index dd11a9f..17c3d9e 100644
--- a/Makefile
+++ b/Makefile
@@ -129,7 +129,7 @@ tcc$(EXESUF): tcc.o libtcc.a
$(I386_CROSS): DEFINES = -DTCC_TARGET_I386
$(X64_CROSS): DEFINES = -DTCC_TARGET_X86_64
-$(WIN32_CROSS): DEFINES = -DTCC_TARGET_I386 -DTCC_TARGET_PE
+$(WIN32_CROSS): DEFINES = -DTCC_TARGET_I386 -DTCC_TARGET_PE -m32
$(WIN64_CROSS): DEFINES = -DTCC_TARGET_X86_64 -DTCC_TARGET_PE
$(WINCE_CROSS): DEFINES = -DTCC_TARGET_PE
$(C67_CROSS): DEFINES = -DTCC_TARGET_C67