[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/05: gnu: make-linux-libre: Fix cross-compilation.
From: |
guix-commits |
Subject: |
05/05: gnu: make-linux-libre: Fix cross-compilation. |
Date: |
Fri, 20 Sep 2019 03:16:51 -0400 (EDT) |
mothacehe pushed a commit to branch core-updates-next
in repository guix.
commit efc835ba33ba4d47c3234f9d152022234cf41e9e
Author: Mathieu Othacehe <address@hidden>
Date: Wed Sep 4 18:21:19 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 | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index bf1e004..1dcbff4 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -664,6 +664,12 @@ for ARCH and optionally VARIANT, or #f if there is no such
configuration."
#t))
(replace 'configure
(lambda* (#:key inputs native-inputs target #:allow-other-keys)
+ ;; 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)
+ ,@(if (%current-target-system)
+ '((unsetenv "CROSS_CPATH"))
+ '())
;; Avoid introducing timestamps
(setenv "KCONFIG_NOTIMESTAMP" "1")
(setenv "KBUILD_BUILD_TIMESTAMP" (getenv "SOURCE_DATE_EPOCH"))
- branch core-updates-next updated (06cfcab -> efc835b), guix-commits, 2019/09/20
- 01/05: linux-initrd: Use native gzip., guix-commits, 2019/09/20
- 02/05: gnu: glibc-utf8-locales: Fix cross-compilation., guix-commits, 2019/09/20
- 03/05: gnu: grub: Fix cross-compilation., guix-commits, 2019/09/20
- 04/05: gnu: linux-libre: Enable built-in ext4 support., guix-commits, 2019/09/20
- 05/05: gnu: make-linux-libre: Fix cross-compilation.,
guix-commits <=
- core-updates-next is stale, Ludovic Courtès, 2019/09/20