summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2025-07-21 19:07:33 +0200
committerAndreas Enge <andreas@enge.fr>2025-07-21 19:21:11 +0200
commitc58f84aaef8c2ba7f79266deed02e11b71ff4807 (patch)
treeaf8860ec6aa0da77de3cc8502f3369832e68e507
parent76ec17d9626d4c5a4ee3e596289d708718db8fcd (diff)
gnu: supertuxkart: Fix build with gcc@14.
* gnu/packages/games.scm (supertuxkart)[arguments]<#:phases>{'gcc14}: New phase. Change-Id: I60043bdb517551abe4181933cd950075bf68a03e
-rw-r--r--gnu/packages/games.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index fad3e80ac4..5c6fbf027c 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -4999,6 +4999,17 @@ This package expects the game(s) to be placed in subdirectories of
"-DUSE_IPV6=FALSE")
#:phases
#~(modify-phases %standard-phases
+ (add-before 'configure 'gcc14
+ (lambda _
+ (setenv "CXXFLAGS" "-g -O2 -std=c++11")
+ (substitute* "lib/graphics_engine/include/vk_mem_alloc.h"
+ (("#define AMD_VULKAN_MEMORY_ALLOCATOR_H" all)
+ (string-append all "\n#include <cstdio>\n")))
+ (substitute*
+ '("lib/graphics_engine/include/ge_main.hpp"
+ "lib/graphics_engine/include/ge_vulkan_driver.hpp")
+ (("#include <string>" all)
+ (string-append all "\n#include <stdexcept>")))))
(add-before 'configure 'disable-data-install
(lambda _
(substitute* "CMakeLists.txt"