kbuild: add machine size to CHECKFLAGS
[linux-2.6-block.git] / Makefile
index 68982ba7bc2f702b6cf4db2d8c368b6a48194c6d..2626de329e5f338295c356a4eb438cccc2a99c3c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -877,6 +877,9 @@ endif
 # insure the checker run with the right endianness
 CHECKFLAGS += $(if $(CONFIG_CPU_BIG_ENDIAN),-mbig-endian,-mlittle-endian)
 
+# the checker needs the correct machine size
+CHECKFLAGS += $(if $(CONFIG_64BIT),-m64,-m32)
+
 # Default kernel image to build when no specific target is given.
 # KBUILD_IMAGE may be overruled on the command line or
 # set in the environment