mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: supertuxkart: Fix build with gcc@14.
* gnu/packages/games.scm (supertuxkart)[arguments]<#:phases>{'gcc14}: New phase. Change-Id: I60043bdb517551abe4181933cd950075bf68a03e
This commit is contained in:
parent
76ec17d962
commit
c58f84aaef
1 changed files with 11 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue