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'.
This commit is contained in:
Ludovic Courtès 2020-04-03 22:20:46 +02:00
parent 7aad4609ae
commit 09ac892a95
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -370,7 +370,13 @@ (define-public hurd
(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)