guix-commits
[Top][All Lists]
Advanced

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

branch core-updates-frozen updated: gnu: light: Fix compilation with GCC


From: guix-commits
Subject: branch core-updates-frozen updated: gnu: light: Fix compilation with GCC 10.
Date: Mon, 04 Oct 2021 10:11:06 -0400

This is an automated email from the git hooks/post-receive script.

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

The following commit(s) were added to refs/heads/core-updates-frozen by this 
push:
     new 8fb8a5d  gnu: light: Fix compilation with GCC 10.
8fb8a5d is described below

commit 8fb8a5d487c673ff56f58f99b30ffceacf54b469
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Mon Oct 4 13:51:37 2021 +0000

    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 <othacehe@gnu.org>
---
 gnu/packages/linux.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index a919183..2f3ff5f 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -57,6 +57,7 @@
 ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
 ;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
+;;; Copyright © 2021 Josselin Poiret <josselin.poiret@protonmail.ch>
 ;;;
 ;;; 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)



reply via email to

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