]> err.no Git - linux-2.6/commitdiff
[MIPS] Don't abort the build process if '-msym32' isn't supported
authorFranck Bui-Huu <fbuihuu@gmail.com>
Thu, 27 Sep 2007 14:26:40 +0000 (16:26 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 11 Oct 2007 22:46:10 +0000 (23:46 +0100)
-msym32 and previously the strategy to tell the compiler to generate
64-bit code but the assembler to put it into 32-bit ELF was initially
a hack to get around the lack of proper 64-bit binutils support and
later turned into a neat optimization with significant code size
savings.  But it's really just an optimization so there is nothing
wrong with just dropping the option (and whatever else goes along with
it, I forgot all the nasty details) on the floor if due to a vintage
compiler it can't be suported.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Makefile

index b0fac2d436b7f8b96a4c782da1da6fb97b54072d..ebd5d02a7d786e73d738ba3b071949ac3f1efe47 100644 (file)
@@ -602,7 +602,9 @@ ifdef CONFIG_64BIT
   endif
 
   ifeq ($(KBUILD_SYM32), y)
-    cflags-y += -msym32 -DKBUILD_64BIT_SYM32
+    ifeq ($(call cc-option-yn,-msym32), y)
+      cflags-y += -msym32 -DKBUILD_64BIT_SYM32
+    endif
   endif
 endif