gnu: gnubg: Prevent building with AVX instructions.

* gnu/packages/games.scm (gnubg)[arguments]: Add configure-flags for Intel
systems to build without AVX instructions.

Signed-off-by: Kei Kebreau <kkebreau@posteo.net>
This commit is contained in:
Michael Rohleder 2020-11-16 13:17:37 +01:00 committed by Kei Kebreau
parent abb64b5efc
commit 82df93e27c
No known key found for this signature in database
GPG key ID: E6A5EE3C19467A0D

View file

@ -1605,7 +1605,14 @@ (define-public gnubg
(native-inputs `(("python-2" ,python-2)
("pkg-config" ,pkg-config)))
(arguments
`(#:phases
`(#:configure-flags
;; SSE instructions are available on Intel systems only.
(list ,@(if (any (cute string-prefix? <> (or (%current-target-system)
(%current-system)))
'("x86_64" "i686"))
'("--enable-simd=sse2") ; prevent avx instructions
'()))
#:phases
(modify-phases %standard-phases
(add-after 'install 'install-desktop-file
(lambda* (#:key outputs #:allow-other-keys)