mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-01 07:16:39 +01:00
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 @@ (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)
|
||||
|
|
Loading…
Reference in a new issue