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:
parent
abb64b5efc
commit
82df93e27c
1 changed files with 8 additions and 1 deletions
|
@ -1605,7 +1605,14 @@ such as chess or stockfish.")
|
||||||
(native-inputs `(("python-2" ,python-2)
|
(native-inputs `(("python-2" ,python-2)
|
||||||
("pkg-config" ,pkg-config)))
|
("pkg-config" ,pkg-config)))
|
||||||
(arguments
|
(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
|
(modify-phases %standard-phases
|
||||||
(add-after 'install 'install-desktop-file
|
(add-after 'install 'install-desktop-file
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
|
Reference in a new issue