diff options
author | Franck Bui-Huu <fbuihuu@gmail.com> | 2007-09-27 10:26:40 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-10-11 18:46:10 -0400 |
commit | e58d95abb7b3232333ab35a09f7f5b0cd6a19cdb (patch) | |
tree | d4d7988267b309fb033cf5fb9a52b7ef8456c644 /arch/mips | |
parent | e9f874b6f761f7f8394157d28641491c9babc1d3 (diff) |
[MIPS] Don't abort the build process if '-msym32' isn't supported
-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>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index b0fac2d436b7..ebd5d02a7d78 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile | |||
@@ -602,7 +602,9 @@ ifdef CONFIG_64BIT | |||
602 | endif | 602 | endif |
603 | 603 | ||
604 | ifeq ($(KBUILD_SYM32), y) | 604 | ifeq ($(KBUILD_SYM32), y) |
605 | cflags-y += -msym32 -DKBUILD_64BIT_SYM32 | 605 | ifeq ($(call cc-option-yn,-msym32), y) |
606 | cflags-y += -msym32 -DKBUILD_64BIT_SYM32 | ||
607 | endif | ||
606 | endif | 608 | endif |
607 | endif | 609 | endif |
608 | 610 | ||