Hello Tobias,

Tobias Platen <trisq...@platen-software.de> skribis:

> I succesfully crosscompiled GNU Hello and all its dependencies
> including glibc for POWER9. Without my patch glibc will fail to
> build. I am using the core-updates branch, since the default branch
> uses an outdated version of GCC.

Awesome!  What triplet did you use, is it “powerpc9-linux-gnu”?

I’d like to change the patch so that it doesn’t affect other targets.
Would the updated patch below work for you?

Could also you succinctly explain why this flag is needed?  I’d rather
have a comment in the code so the next person that fiddles with it knows
why it’s there.

Thank you!

Ludo’.

diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index bb3d6d916a..c70739b3ab 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -141,6 +141,11 @@ base compiler and using LIBC (which may be either a libc package or #f.)"
                                "--disable-decimal-float" ;would need libc
                                "--disable-libcilkrts"
 
+                               ,@(if (string-prefix? "powerpc9-" target)
+                                     ;; On POWER9 we need this because XXX.
+                                     '("--with-long-double-128")
+                                     '())
+
                                ;; When target is any OS other than 'none' these
                                ;; libraries will fail if there is no libc
                                ;; present. See

Reply via email to