guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: jumpnbump: Add -fcommon to CFLAGS.


From: guix-commits
Subject: 01/02: gnu: jumpnbump: Add -fcommon to CFLAGS.
Date: Mon, 22 Nov 2021 16:52:45 -0500 (EST)

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

commit 02296cb0c8bff29e82cdfc48bf59f4648db7d6b2
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Nov 22 22:51:27 2021 +0100

    gnu: jumpnbump: Add -fcommon to CFLAGS.
    
    * gnu/packages/games.scm (jumpnbump)[arguments]: Replace 'configure phase to
    add -fcommon to CFLAGS.
---
 gnu/packages/games.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index e9f4586..65c05a9 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -9416,7 +9416,14 @@ simulator.")
        #:tests? #f                      ;no test
        #:phases
        (modify-phases %standard-phases
-         (delete 'configure)            ;no configure script
+         ;; There is no configure script
+         (replace 'configure
+           (lambda _
+             (substitute* "Makefile"
+               (("-funroll-loops")
+                "-funroll-loops -fcommon")
+               (("SDL_CFLAGS =")
+                "SDL_CFLAGS = -fcommon"))))
          (add-after 'unpack 'fix-sdl-path
            ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
            ;; directory, not SDL-union provided as an input to the package.



reply via email to

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