guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: guix-commits
Subject: 03/03: gnu: multipath-tools: Treat libaio headers as system headers.
Date: Wed, 17 Jul 2019 09:17:12 -0400 (EDT)

mbakke pushed a commit to branch core-updates
in repository guix.

commit 5247aab8d6a18a4081ab7caeddb4fc083bca1f6b
Author: Marius Bakke <address@hidden>
Date:   Wed Jul 17 15:12:50 2019 +0200

    gnu: multipath-tools: Treat libaio headers as system headers.
    
    * gnu/packages/linux.scm (multipath-tools)[arguments]: Set C_INCLUDE_PATH in
    <#:make-flags>.
---
 gnu/packages/linux.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 4ccf613..22f001d 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3271,6 +3271,12 @@ arrays when needed.")
                           (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"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]