summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-09 20:15:00 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-09 21:33:14 +0200
commit24ca498fc322936281b0c69c271dd64979c313eb (patch)
treeeb32bcba0d8f595b4f9d1914b51936d2c9e1acf9
parent7136bb422a0681d787d07dc2936f08395b8a1007 (diff)
fix mips/mips64 build for old compilers
gcc 4.8 does not support nan flag. Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--Rules.mak4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rules.mak b/Rules.mak
index 67189ffdc..b9dbf2577 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -404,8 +404,8 @@ ifeq ($(TARGET_ARCH),mips)
CPU_CFLAGS-$(CONFIG_MIPS_N64_ABI)+=-mabi=64
CPU_CFLAGS-$(CONFIG_MIPS_O32_ABI)+=-mabi=32
CPU_CFLAGS-$(CONFIG_MIPS_N32_ABI)+=-mabi=n32
- CPU_CFLAGS-$(CONFIG_MIPS_NAN_LEGACY)+=-mnan=legacy
- CPU_CFLAGS-$(CONFIG_MIPS_NAN_2008)+=-mnan=2008
+ CPU_CFLAGS-$(CONFIG_MIPS_NAN_LEGACY)+=$(call check_gcc,-mnan=legacy)
+ CPU_CFLAGS-$(CONFIG_MIPS_NAN_2008)+=$(call check_gcc,-mnan=2008)
CPU_LDFLAGS-y += $(CPU_CFLAGS)
endif