guix-commits
[Top][All Lists]
Advanced

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

04/10: gnu: mtd-utils: Fix cross-compiling.


From: guix-commits
Subject: 04/10: gnu: mtd-utils: Fix cross-compiling.
Date: Mon, 7 Mar 2022 15:56:24 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 67d6544b6dfacca4abf6390c64cd6cb98c52a498
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 7 22:39:53 2022 +0200

    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.
---
 gnu/packages/linux.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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



reply via email to

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