guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/52: gnu: hurd: Use a 32-bit MiG when cross-compiling.


From: guix-commits
Subject: 07/52: gnu: hurd: Use a 32-bit MiG when cross-compiling.
Date: Thu, 9 Apr 2020 13:29:02 -0400 (EDT)

janneke pushed a commit to branch wip-hurd-vm
in repository guix.

commit 130c279d36510ee8ba23ecb78f993ab150efb62c
Author: Ludovic Courtès <address@hidden>
AuthorDate: Fri Apr 3 22:20:46 2020 +0200

    gnu: hurd: Use a 32-bit MiG when cross-compiling.
    
    * gnu/packages/hurd.scm (hurd)[native-inputs]: When
    '%current-target-system' is true, pass #:system "i686-linux" to 'mig'.
---
 gnu/packages/hurd.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index ca7d7e9..6478eb4 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -370,7 +370,13 @@ boot, since this cannot be done from GNU/Linux."
     (native-inputs
      `(("autoconf" ,autoconf)
        ("automake" ,automake)
-       ("mig" ,mig)
+       ("mig" ,(if (%current-target-system)
+                   ;; XXX: When targeting i586-pc-gnu, we need a 32-bit MiG,
+                   ;; hence this hack.
+                   (package
+                     (inherit mig)
+                     (arguments `(#:system "i686-linux")))
+                   mig))
        ("perl" ,perl)
        ("texinfo" ,texinfo-4)))
     (supported-systems %hurd-systems)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]