aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2019-11-21 22:38:07 +0100
committerMarius Bakke <mbakke@fastmail.com>2019-11-21 22:41:45 +0100
commita4c36e6593c392c1c4e936951fe570183684b9bb (patch)
treefef5624a4083c226b3f8aa1c0f9b4cf4c57d52ef /gnu
parent9e04cd0808c5d15c1b2709cd769bfe9a660e2427 (diff)
downloadpatches-a4c36e6593c392c1c4e936951fe570183684b9bb.tar
patches-a4c36e6593c392c1c4e936951fe570183684b9bb.tar.gz
gnu: lxc: Adjust for GCC 7.
* gnu/packages/virtualization.scm (lxc)[arguments]: Add #:make-flags.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/virtualization.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index 0210c2936e..d9cda7696d 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -381,6 +381,12 @@ all common programming languages. Vala bindings are also provided.")
"/share/doc/" ,name "-" ,version)
"--sysconfdir=/etc"
"--localstatedir=/var")
+ #:make-flags
+ ;; Treat the kernel headers as system headers to silence
+ ;; compiler warnings from those.
+ (list (string-append "C_INCLUDE_PATH="
+ (assoc-ref %build-inputs "kernel-headers")
+ "/include"))
#:phases
(modify-phases %standard-phases
(replace 'install