gnu: crawl: Don't assume system architecture.

This allows crawl to build on non-Intel architectures.

* gnu/packages/games.scm (crawl)[arguments]: Add a custom phase to
remove x86* specific CFLAGS.
This commit is contained in:
Efraim Flashner 2019-03-08 15:27:29 +02:00
parent fc7d6bc60d
commit b89284407f
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 5 additions and 0 deletions

View File

@ -4454,6 +4454,11 @@ fish. The whole game is accompanied by quiet, comforting music.")
"-Csource")) "-Csource"))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'patch-flags
(lambda _
(substitute* "source/Makefile"
(("-mfpmath=sse -msse2") ""))
#t))
(delete 'configure) (delete 'configure)
(replace 'check (replace 'check
(lambda* (#:key inputs outputs make-flags #:allow-other-keys) (lambda* (#:key inputs outputs make-flags #:allow-other-keys)