gnu: multipath-tools: Treat libaio headers as system headers.

* gnu/packages/linux.scm (multipath-tools)[arguments]: Set C_INCLUDE_PATH in
<#:make-flags>.
This commit is contained in:
Marius Bakke 2019-07-17 15:12:50 +02:00
parent 7f080fb97c
commit 5247aab8d6
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -3271,6 +3271,12 @@ (define-public multipath-tools
(string-append "DESTDIR="
(assoc-ref %outputs "out"))
"SYSTEMDPATH=lib"
;; Add the libaio headers to GCCs system header
;; search path to suppress -Werror=cast-qual on
;; the included headers.
(string-append "C_INCLUDE_PATH="
(assoc-ref %build-inputs "libaio")
"/include")
(string-append "LDFLAGS=-Wl,-rpath="
(assoc-ref %outputs "out")
"/lib"))