mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 22:50:23 -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")
|
(list "--with-system-enet")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-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
|
(add-after 'unpack 'find-sdl
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "configure"
|
(substitute* "configure"
|
||||||
|
|
Loading…
Reference in a new issue