From ddc9f102de80f086489138a0617f0c58e1bd580f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 28 Feb 2018 10:36:47 -0500 Subject: [PATCH] fix build for s390x due to wrong long double ABI default musl uses IEEE quad for long double on s390x. current versions check for mismatch and hard fail at configure time if the compiler is wrong. with older versions, mcm silently produced a broken toolchain/libc. --- litecross/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litecross/Makefile b/litecross/Makefile index c0dce0a..8e8e59b 100644 --- a/litecross/Makefile +++ b/litecross/Makefile @@ -35,6 +35,10 @@ GCC_CONFIG_FOR_TARGET += --with-abi=64 endif endif +ifneq ($(findstring s390x,$(TARGET)),) +GCC_CONFIG_FOR_TARGET += --with-long-double-128 +endif + ifneq ($(filter %sf,$(TARGET)),) GCC_CONFIG_FOR_TARGET += --with-float=soft endif