From 8fb8a5d487c673ff56f58f99b30ffceacf54b469 Mon Sep 17 00:00:00 2001 From: Josselin Poiret Date: Mon, 4 Oct 2021 13:51:37 +0000 Subject: gnu: light: Fix compilation with GCC 10. -fno-common is default in GCC 10, which resulted in build failures. * gnu/packages/linux.scm (light)[arguments]: Add -fcommon compile flag. Signed-off-by: Mathieu Othacehe --- gnu/packages/linux.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index a919183068..2f3ff5ffe6 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -57,6 +57,7 @@ ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Sarah Morgensen ;;; Copyright © 2021 Felix Gruber +;;; Copyright © 2021 Josselin Poiret ;;; ;;; This file is part of GNU Guix. ;;; @@ -6842,7 +6843,8 @@ monitoring tools for Linux. These include @code{mpstat}, @code{iostat}, (file-name (git-file-name name version)))) (build-system gnu-build-system) (arguments - `(#:phases + `(#:configure-flags '("CFLAGS=-fcommon") + #:phases (modify-phases %standard-phases (add-after 'unpack 'patch-udev-rules-absolute-path-bins (lambda* (#:key inputs #:allow-other-keys) -- cgit v1.2.3