From 4686236091d8ebc2f11c799d0c5a6f8ce36554b5 Mon Sep 17 00:00:00 2001 From: Henry Kroll III Date: Fri, 23 Apr 2010 18:32:09 -0700 Subject: [PATCH] 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 Committer: Henry Kroll --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index dd11a9fd..17c3d9ec 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