mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: gcc-boot0, cross-base: Enable 128-bit long double for POWER9.
* 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 <ludo@gnu.org>
This commit is contained in:
parent
2a1eda5a9b
commit
4a914de930
2 changed files with 12 additions and 0 deletions
|
@ -2818,6 +2818,12 @@ (define gcc-boot0
|
|||
"--disable-shared"
|
||||
"--enable-languages=c,c++"
|
||||
|
||||
,@(if (equal? "powerpc64le-linux-gnu" (boot-triplet))
|
||||
;; On POWER9 (little endian) glibc needs the
|
||||
;; 128-bit long double type.
|
||||
'("--with-long-double-128")
|
||||
'())
|
||||
|
||||
;; libstdc++ cannot be built at this stage
|
||||
;; ("Link tests are not allowed after
|
||||
;; GCC_NO_EXECUTABLES.").
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue