summary refs log tree commit diff
path: root/gnu/packages/commencement.scm
diff options
context:
space:
mode:
authorJan Nieuwenhuizen <janneke@gnu.org>2020-02-19 18:52:17 +0100
committerJan Nieuwenhuizen <janneke@gnu.org>2020-02-19 19:25:37 +0100
commitb6aedea9cc1c7eb701eccdb863275bbb01644ace (patch)
tree5d3012db495bded0ad41a88e7b32d50a7972ed5b /gnu/packages/commencement.scm
parent70a27b445ebc2842c119645bfa721fe310ffcb5f (diff)
downloadguix-b6aedea9cc1c7eb701eccdb863275bbb01644ace.tar.gz
gnu: commencement: findutils-boot0: Build fix for ARM.
* gnu/packages/commencement.scm (findutils-boot0)[arm-linux, aarch64-linux]:
Configure with --disable-dependency-tracking.  Fixes build on arm/Aarch64.
Diffstat (limited to 'gnu/packages/commencement.scm')
-rw-r--r--gnu/packages/commencement.scm17
1 files changed, 11 insertions, 6 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 45e149ff56..e3800d84a5 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2584,12 +2584,17 @@ exec " gcc "/bin/" program
 
        ;; The build system assumes we have done a mistake when time_t is 32-bit
        ;; on a 64-bit system.  Ignore that for our bootstrap toolchain.
-       ,@(if (target-64bit?)
-             (substitute-keyword-arguments (package-arguments findutils)
-               ((#:configure-flags flags ''())
-                `(cons "TIME_T_32_BIT_OK=yes"
-                       ,flags)))
-             (package-arguments findutils))))))
+       ,@(substitute-keyword-arguments (package-arguments findutils)
+           ((#:configure-flags flags ''())
+            `(append
+              ,(if (target-64bit?)
+                   ''("TIME_T_32_BIT_OK=yes")
+                   ''())
+              ,(match (%current-system)
+                 ((or "arm-linux" "aarch64-linux")
+                  ''("--disable-dependency-tracking"))
+                 (_ ''()))
+              ,flags)))))))
 
 (define file
   (package