diff options
author | Diego Nicola Barbato <dnbarbato@posteo.de> | 2020-11-14 15:07:28 -0500 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2020-11-14 22:11:31 -0500 |
commit | 81643c4cf3e61f5a98b92a72a92c230f5e7ca905 (patch) | |
tree | fe45814dfa51d62e9ce67761f3519f50d3c0af42 /gnu | |
parent | b070e3f810e672753f85be708788670434f393b7 (diff) | |
download | guix-81643c4cf3e61f5a98b92a72a92c230f5e7ca905.tar guix-81643c4cf3e61f5a98b92a72a92c230f5e7ca905.tar.gz |
gnu: python-matplotlib: Fix rounding errors on x86 CPUs.
Fixes <https://issues.guix.gnu.org/40406>.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/python-xyz.scm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 278b557a0b..f2f812a802 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -89,6 +89,7 @@ ;;; Copyright © 2020 Tim Gesthuizen <tim.gesthuizen@yahoo.de> ;;; Copyright © 2020 Bonface Munyoki Kilyungi <bonfacemunyoki@gmail.com> ;;; Copyright © 2020 Ekaitz Zarraga <ekaitz@elenq.tech> +;;; Copyright © 2020 Diego N. Barbato <dnbarbato@posteo.de> ;;; ;;; This file is part of GNU Guix. ;;; @@ -5062,6 +5063,9 @@ convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, etc. ;; has not effect. (setenv "LD_LIBRARY_PATH" (string-append cairo "/lib")) (setenv "HOME" (getcwd)) + ;; Fix rounding errors when using the x87 FPU. + (when (string-prefix? "i686" ,(%current-system)) + (setenv "CFLAGS" "-ffloat-store")) (call-with-output-file "setup.cfg" (lambda (port) (format port "[directories]~% |