diff -Naurp linux-2.6.17-rc3.orig/arch/mips/Makefile linux-2.6.17-rc3/arch/mips/Makefile --- linux-2.6.17-rc3.orig/arch/mips/Makefile 2006-05-06 13:24:57.000000000 -0400 +++ linux-2.6.17-rc3/arch/mips/Makefile 2006-05-06 13:31:37.000000000 -0400 @@ -63,9 +63,13 @@ cflags-y += -mabi=64 ifdef CONFIG_BUILD_ELF64 cflags-y += $(call cc-option,-mno-explicit-relocs) else +ifdef CONFIG_SGI_IP32 +cflags-y += -mabi=o64 +else cflags-y += $(call cc-option,-msym32) endif endif +endif #