guix_mirror_bot pushed a commit to branch master in repository guix. commit 35257e52d4b107666c3b5b967e3a56951dccf467 Author: Andreas Enge <andr...@enge.fr> AuthorDate: Sun Jul 20 18:39:25 2025 +0200
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 --- gnu/packages/games.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 98759a4579..21f01a83ae 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -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)