gnu: hurd: Use a 32-bit MiG when cross-compiling.
authorLudovic Courtès <ludo@gnu.org>
Fri, 3 Apr 2020 20:20:46 +0000 (22:20 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 11 Apr 2020 17:22:25 +0000 (19:22 +0200)
* gnu/packages/hurd.scm (hurd)[native-inputs]: When
'%current-target-system' is true, pass #:system "i686-linux" to 'mig'.

gnu/packages/hurd.scm

index ca7d7e9..6478eb4 100644 (file)
@@ -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)