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

View file

@ -4454,6 +4454,11 @@ (define-public crawl
"-Csource"))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-flags
(lambda _
(substitute* "source/Makefile"
(("-mfpmath=sse -msse2") ""))
#t))
(delete 'configure)
(replace 'check
(lambda* (#:key inputs outputs make-flags #:allow-other-keys)