From 4a914de930a8317cab5bc11bdb608e3a3da3d1ad Mon Sep 17 00:00:00 2001 From: dftxbs3e Date: Sat, 7 Dec 2019 20:26:51 +0100 Subject: gnu: gcc-boot0, cross-base: Enable 128-bit long double for POWER9. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/cross-base.scm (cross-gcc-arguments): Add "--with-long-double-128" when TARGET is "powerpc64le-linux-gnu". * gnu/packages/commencement.scm (gcc-boot0): Likewise for (boot-triplet). Signed-off-by: Ludovic Courtès --- gnu/packages/cross-base.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gnu/packages/cross-base.scm') diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm index c1e5f2eb79..bea2d69876 100644 --- a/gnu/packages/cross-base.scm +++ b/gnu/packages/cross-base.scm @@ -153,6 +153,12 @@ (define (cross-gcc-arguments target xgcc libc) "--disable-decimal-float" ;would need libc "--disable-libcilkrts" + ,@(if (equal? "powerpc64le-linux-gnu" target) + ;; On POWER9 (little endian) glibc needs + ;; the 128-bit long double type. + '("--with-long-double-128") + '()) + ;; When target is any OS other than 'none' these ;; libraries will fail if there is no libc ;; present. See -- cgit v1.2.3