gnu: efivar: Fix build failure with GCC7.

* gnu/packages/linux.scm (efivar)[arguments]: Add phase
'kernel-headers-are-system-headers'.
This commit is contained in:
Marius Bakke 2019-02-28 20:20:28 +01:00
parent e050aa1990
commit f90d6c3f69
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 8 additions and 1 deletions

View File

@ -4104,7 +4104,14 @@ under OpenGL graphics workloads.")
(string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))
#:phases
(modify-phases %standard-phases
(delete 'configure))))
(delete 'configure)
(add-before 'build 'kernel-headers-are-system-headers
(lambda* (#:key inputs #:allow-other-keys)
(let ((kernel-headers (assoc-ref inputs "kernel-headers")))
;; Make sure the kernel headers are treated as system headers
;; to suppress a conflict between "util.h" and <linux/fs.h>.
(setenv "C_INCLUDE_PATH" (string-append kernel-headers "/include"))
#t))))))
(native-inputs
`(("pkg-config" ,pkg-config)))
(inputs