Browse Source

gnu: enigma: Fix build with GCC >= 6.

* gnu/packages/games.scm (enigma)[arguments]: Add phase to substitute faulty
comparison.
gn-latest-20200725
Marius Bakke 1 year ago
parent
commit
0b95f51eae
No known key found for this signature in database GPG Key ID: A2A06DF2A33A54FA
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      gnu/packages/games.scm

+ 8
- 0
gnu/packages/games.scm View File

@ -5841,6 +5841,14 @@ The Flag. You can even design your own maps!")
(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…
Cancel
Save