guix-commits
[Top][All Lists]
Advanced

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

40/64: gnu: make-linux-libre: Fix cross-compilation.


From: guix-commits
Subject: 40/64: gnu: make-linux-libre: Fix cross-compilation.
Date: Fri, 23 Aug 2019 04:10:21 -0400 (EDT)

mothacehe pushed a commit to branch wip-cross-system
in repository guix.

commit 73d446eb99e4ea9aaebf5a9e52bef05e23658a6e
Author: Mathieu Othacehe <address@hidden>
Date:   Fri Aug 2 11:25:22 2019 +0200

    gnu: make-linux-libre: Fix cross-compilation.
    
    * gnu/packages/linux.scm (make-linux-libre)[arguments]: Unset CROSS_CPATH to
    make sure that cross-libc is not found. Otherwise, some of its header would
    conflict with the one from linux (stdint.h and linux/types.h).
---
 gnu/packages/linux.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 0036b85..ac7312b 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -665,6 +665,9 @@ for ARCH and optionally VARIANT, or #f if there is no such 
configuration."
          (replace 'configure
            (lambda* (#:key inputs native-inputs target #:allow-other-keys)
              ;; Avoid introducing timestamps
+             ,@(if (%current-target-system)
+                   '((unsetenv "CROSS_CPATH"))
+                   '())
              (setenv "KCONFIG_NOTIMESTAMP" "1")
              (setenv "KBUILD_BUILD_TIMESTAMP" (getenv "SOURCE_DATE_EPOCH"))
 



reply via email to

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