[MIPS] Sparse: fix sparse for 64-bit kernels.
[deliverable/linux.git] / arch / mips / Makefile
index 69b9c1b8fafc6f72bb9dc010b1a4422c20ce6c3e..133900aca992040a04481e9a2069b1c44f5461ec 100644 (file)
@@ -615,7 +615,10 @@ LDFLAGS                    += -m $(ld-emul)
 ifdef CONFIG_MIPS
 CHECKFLAGS += $(shell $(CC) $(CFLAGS) -dM -E -xc /dev/null | \
        egrep -vw '__GNUC_(MAJOR|MINOR|PATCHLEVEL)__' | \
-       sed -e 's/^\#define /-D/' -e 's/ /="/' -e 's/$$/"/')
+       sed -e 's/^\#define /-D/' -e "s/ /='/" -e "s/$$/'/")
+ifdef CONFIG_64BIT
+CHECKFLAGS             += -m64
+endif
 endif
 
 OBJCOPYFLAGS           += --remove-section=.reginfo
This page took 0.024024 seconds and 5 git commands to generate.