crossplatform.mk: Detecting 32 bit Windows cross-compile to build host bootstrap...
authorJerome St-Louis <jerome@ecere.com>
Wed, 6 Mar 2013 09:18:44 +0000 (04:18 -0500)
committerJerome St-Louis <jerome@ecere.com>
Wed, 6 Mar 2013 09:18:44 +0000 (04:18 -0500)
crossplatform.mk

index bc9abed..e15210f 100644 (file)
@@ -81,6 +81,16 @@ endif
 endif
 endif
 
+ifeq "$(GCC_PREFIX)" "i586-mingw32msvc-"
+export ARCH
+ARCH := x32
+endif
+
+ifeq "$(GCC_PREFIX)" "i686-w64-mingw32-"
+export ARCH
+ARCH := x32
+endif
+
 # Accept different things for ARCH but standardize on x32/x64
 # This will be used for object directories
 ifdef ARCH