gnu: gcc-boot0: Use 128-bit long-double on powerpc-linux.

* gnu/packages/commencement.scm (gcc-boot0)[arguments]: Adjust
configure-flag to also use '--with-long-double-128' on powerpc-linux.
This commit is contained in:
Efraim Flashner 2021-04-18 12:51:34 +03:00
parent cbdb7d4fea
commit dc25a9dfa8
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2732,12 +2732,12 @@ (define gcc-boot0
"--disable-shared"
"--enable-languages=c,c++"
;; boot-triplet inserts "guix" in the triplet.
,@(if (equal? "powerpc64le-guix-linux-gnu" (boot-triplet))
;; On POWER9 (little endian) glibc needs the
;; 128-bit long double type.
'("--with-long-double-128")
'())
;; On POWER9 (little endian) glibc needs the 128-bit
;; long double type. 32-bit PPC is affected by the
;; changes applied for powerpc64le.
,@(if (string-prefix? "powerpc" (boot-triplet))
'("--with-long-double-128")
'())
;; libstdc++ cannot be built at this stage
;; ("Link tests are not allowed after