mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
gnu: enigma: Fix build with GCC >= 6.
* gnu/packages/games.scm (enigma)[arguments]: Add phase to substitute faulty comparison.
This commit is contained in:
parent
dc6cd35e6d
commit
0b95f51eae
1 changed files with 8 additions and 0 deletions
|
@ -5841,6 +5841,14 @@ (define-public enigma
|
|||
(list "--with-system-enet")
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'fix-build-with-new-gcc
|
||||
(lambda _
|
||||
;; Fix build with GCC6 and later by avoiding comparing ifstream
|
||||
;; to NULL. Can be removed for versions > 1.21.
|
||||
(substitute* "src/lev/Proxy.cc"
|
||||
(("ifs != NULL")
|
||||
"ifs"))
|
||||
#t))
|
||||
(add-after 'unpack 'find-sdl
|
||||
(lambda _
|
||||
(substitute* "configure"
|
||||
|
|
Loading…
Reference in a new issue