~ruther/guix-local

35257e52d4b107666c3b5b967e3a56951dccf467 — Andreas Enge 1 year, 3 months ago 305a54e
gnu: tome4: Fix build with gcc@14.

* gnu/packages/games.scm (tome4)[arguments]<#:phases>{'set-cflags}:
New phase.

Fixes: guix/guix#1403
Change-Id: Ie9134d4f9a51cf46f89903ef18eaabe3ca39efd0
1 files changed, 7 insertions(+), 0 deletions(-)

M gnu/packages/games.scm
M gnu/packages/games.scm => gnu/packages/games.scm +7 -0
@@ 8409,6 8409,13 @@ Crowther & Woods, its original authors, in 1995.  It has been known as
                      (string-append
                       (search-input-directory inputs "/include/SDL2")
                       ":" (or (getenv "CPATH") "")))))
          (add-after 'set-sdl-paths 'set-cflags
            (lambda _
              (setenv "CFLAGS"
                      (string-append
                        "-g -O2 "
                        "-Wno-error=incompatible-pointer-types "
                        "-Wno-error=implicit-function-declaration"))))
          ;; premake doesn't provide install target
          (replace 'install
            (lambda* (#:key inputs outputs #:allow-other-keys)