uclibc: fix mips/mips64 build with older compilers
PATCH 1/1 uclibc: fix mips/mips64 build with older compilers
For example gcc 4.8.x fails to build uClibc-ng for mips/mips64. Check if feature exist before using it.
Reported-by Thomas Petazzoni <[email protected]>
Signed-off-by Waldemar Brodkorb <[email protected]>
--- ...5-fix-mips-mips64-build-for-old-compilers.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/uclibc/0005-fix-mips-mips64-build-for-old-compilers.patch
package/uclibc/0005-fix-mips-mips64-build-for-old-compilers.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 43c4bbf3e0e61f5f487a00a0066816913503656c Mon Sep 17 00:00:00 2001 +From: Waldemar Brodkorb <[email protected]> +Date: Sun, 9 Oct 2016 20:15:00 +0200 +Subject: [PATCH] fix mips/mips64 build for old compilers + +Signed-off-by: Waldemar Brodkorb <[email protected]> +--- + Rules.mak | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Rules.mak b/Rules.mak +index 67189ff..b9dbf25 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 + +-- +2.1.4 +
Signature · 1 line
2.1.4
Thomas Petazzoni
AppliedPATCH 1/1 uclibc: fix mips/mips64 build with older compilers
Hello,
Quoted 9 lines · Waldemar Brodkorb
For example gcc 4.8.x fails to build uClibc-ng for mips/mips64. Check if feature exist before using it.
Reported-by Thomas Petazzoni <[email protected]>Signed-off-by Waldemar Brodkorb <[email protected]>--- ...5-fix-mips-mips64-build-for-old-compilers.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/uclibc/0005-fix-mips-mips64-build-for-old-compilers.patch
Applied to master, thanks for fixing this so quickly!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com