gnu: mtdev: Fix cross-compiling to aarch64-linux.

* gnu/packages/xdisorg.scm (mtdev)[arguments]: When cross-compiling to
aarch64-linux update the config.{guess,sub} also.
[native-inputs]: When cross-compiling to aarch64 add config.
This commit is contained in:
Efraim Flashner 2023-10-20 15:58:37 +03:00
parent 7da8a43396
commit 760a210b74
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -783,7 +783,8 @@ (define-public mtdev
(arguments
`(#:configure-flags
'("--disable-static")
,@(if (and (target-riscv64?)
,@(if (and (or (target-riscv64?)
(target-aarch64?))
(%current-target-system))
`(#:phases
(modify-phases %standard-phases
@ -798,7 +799,8 @@ (define-public mtdev
'("config.guess" "config.sub"))))))
'())))
(native-inputs
(if (and (target-riscv64?)
(if (and (or (target-riscv64?)
(target-aarch64?))
(%current-target-system))
(list config)
'()))