me
/
guix
Archived
1
0
Fork 0

gnu: openblas: Add support for older x86 processors.

Fixes <https://issues.guix.gnu.org/51452>.

* gnu/packages/maths.scm (openblas)[make-flags]: Make the x86_64, i686,
powerpc64le and aarch64 architectures share the same flags; this causes the
DYNAMIC_OLDER=1 to be added for all of them and TARGET=GENERIC to be added for
the x86_64 and i686 architectures.
master
Maxim Cournoyer 2021-11-06 01:06:06 -04:00
parent 59ca8d6483
commit 9e497f44ba
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 6 additions and 6 deletions

View File

@ -4444,13 +4444,13 @@ parts of it.")
,@(let ((system (or (%current-target-system) (%current-system))))
(cond
((or (string-prefix? "x86_64" system)
(string-prefix? "i686" system))
'("DYNAMIC_ARCH=1"))
;; On some of these architectures the CPU can't be detected.
((or (string-prefix? "powerpc64le" system)
(string-prefix? "i686" system)
(string-prefix? "powerpc64le" system)
(string-prefix? "aarch64" system))
'("DYNAMIC_ARCH=1"
"TARGET=GENERIC"))
;; Dynamic older enables a few extra CPU architectures that
;; were released before 2010.
'("DYNAMIC_ARCH=1" "DYNAMIC_OLDER=1" "TARGET=GENERIC"))
;; On some of these architectures the CPU can't be detected.
;; On MIPS we force the "SICORTEX" TARGET, as for the other
;; two available MIPS targets special extended instructions
;; for Loongson cores are used.