aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2022-03-07 22:39:53 +0200
committerEfraim Flashner <efraim@flashner.co.il>2022-03-07 22:53:56 +0200
commit67d6544b6dfacca4abf6390c64cd6cb98c52a498 (patch)
treecb9e5c1ed17c3bf227e6f4db67d8c738e608a4cb /gnu
parentdf03e7a60136aef8e804b1ee90c5fdf99c38713b (diff)
downloadguix-67d6544b6dfacca4abf6390c64cd6cb98c52a498.tar
guix-67d6544b6dfacca4abf6390c64cd6cb98c52a498.tar.gz
gnu: mtd-utils: Fix cross-compiling.
* gnu/packages/linux.scm (mtd-utils)[arguments]: Only add configure-flag to enable unit-tests when not cross compiling.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/linux.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index f3b05b037c..2a69ba1447 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -6610,7 +6610,10 @@ exceeded.")
(base32
"1mp9fqgnz5r69s8ly98ry6k2blqnaqpllwi8m930dm0n8zrwbm4a"))))
(arguments
- '(#:configure-flags '("--enable-unit-tests")))
+ (list #:configure-flags
+ (if (%current-target-system) ; When cross-compiling.
+ #~(list)
+ #~(list "--enable-unit-tests"))))
(native-inputs
(list cmocka pkg-config))
(inputs