From 35257e52d4b107666c3b5b967e3a56951dccf467 Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Sun, 20 Jul 2025 18:39:25 +0200 Subject: [PATCH] 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 98759a45795d6e879d0dce1a1b4e6e74ad348840..21f01a83ae3cff35967071a73004d5ff630cd176 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)