mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 06:37:08 +01:00
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).
This commit is contained in:
parent
6202bb33eb
commit
6ef379f879
1 changed files with 6 additions and 0 deletions
|
@ -669,6 +669,12 @@ (define* (make-linux-libre* version source supported-systems
|
|||
#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"))
|
||||
|
|
Loading…
Reference in a new issue