guix-commits
[Top][All Lists]
Advanced

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

01/04: gnu: mpc123: Allow compilation with GCC 10.


From: guix-commits
Subject: 01/04: gnu: mpc123: Allow compilation with GCC 10.
Date: Sat, 11 Sep 2021 12:15:10 -0400 (EDT)

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

commit 83168079ac176563ed2b448bb1b2fd0e5d4a5dc3
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sat Sep 11 12:01:13 2021 +0200

    gnu: mpc123: Allow compilation with GCC 10.
    
    * gnu/packages/mp3.scm (mpc123)[arguments]: In 'configure' phase, call
    'setenv'.
---
 gnu/packages/mp3.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm
index bb9c07b..43398f1 100644
--- a/gnu/packages/mp3.scm
+++ b/gnu/packages/mp3.scm
@@ -544,7 +544,9 @@ format.")
            (lambda _
              (substitute* "Makefile"
                (("CC[[:blank:]]*:=.*")
-                "CC := gcc\n"))))
+                "CC := gcc\n"))
+
+             (setenv "CFLAGS" "-fcommon -g")))  ;allow compilation with GCC 10
          (replace 'install
            (lambda* (#:key outputs #:allow-other-keys)
              (let* ((out (assoc-ref outputs "out"))



reply via email to

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