mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-01 15:26:47 +01:00
gnu: perf: Treat kernel headers as system headers.
* gnu/packages/linux.scm (perf)[arguments]: Instead of disabling -Werror, set C_INCLUDE_PATH.
This commit is contained in:
parent
81bc4533aa
commit
5157edd885
1 changed files with 5 additions and 4 deletions
|
@ -3091,15 +3091,16 @@ (define-public perf
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
;; Don't build with '-Werror', really.
|
|
||||||
(substitute* "tools/lib/bpf/Makefile"
|
|
||||||
(("-Werror") ""))
|
|
||||||
|
|
||||||
(setenv "SHELL_PATH" (which "bash"))
|
(setenv "SHELL_PATH" (which "bash"))
|
||||||
(chdir "tools/perf")
|
(chdir "tools/perf")
|
||||||
#t)))
|
#t)))
|
||||||
#:make-flags (list (string-append "prefix="
|
#:make-flags (list (string-append "prefix="
|
||||||
(assoc-ref %outputs "out"))
|
(assoc-ref %outputs "out"))
|
||||||
|
;; Make sure the kernel headers are treated as system
|
||||||
|
;; headers to suppress warnings from those.
|
||||||
|
(string-append "C_INCLUDE_PATH="
|
||||||
|
(assoc-ref %build-inputs "kernel-headers")
|
||||||
|
"/include")
|
||||||
"WERROR=0"
|
"WERROR=0"
|
||||||
|
|
||||||
;; By default, 'config/Makefile' uses lib64 on
|
;; By default, 'config/Makefile' uses lib64 on
|
||||||
|
|
Loading…
Reference in a new issue