gnu: Python: Disable indeterministic optimizations.

* gnu/packages/python.scm (python-2.7)[arguments]: Remove "--with-lto" and
"--enable-optimizations" from #:configure-flags.
This commit is contained in:
Marius Bakke 2021-07-22 00:08:52 +02:00
parent 79c2812130
commit 71ec85b295
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -187,9 +187,12 @@ (define-public python-2.7
"--with-system-ffi" ;build ctypes
"--with-ensurepip=install" ;install pip and setuptools
"--with-computed-gotos" ;main interpreter loop optimization
"--with-lto" ;increase size by 20MB, but 15% speedup
"--enable-unicode=ucs4"
"--enable-optimizations"
;; FIXME: These flags makes Python significantly faster, but
;; leads to non-reproducible binaries.
;; "--with-lto" ;increase size by 20MB, but 15% speedup
;; "--enable-optimizations"
;; Prevent the installed _sysconfigdata.py from retaining a reference
;; to coreutils.