matplotlib: Disable LTO on darwin.

Needs #19312 or equivalent to work.
This commit is contained in:
Shea Levy 2020-09-09 12:18:50 -04:00
parent 5c84d57a59
commit 31579c6b0a
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27
2 changed files with 8 additions and 1 deletions

View file

@ -45,7 +45,7 @@ buildPythonPackage rec {
++ stdenv.lib.optionals enableTk [ tcl tk tkinter libX11 ]
++ stdenv.lib.optionals enableQt [ pyqt5 ];
setup_cfg = ./setup.cfg;
setup_cfg = if stdenv.isDarwin then ./setup-darwin.cfg else ./setup.cfg;
preBuild = ''
cp "$setup_cfg" ./setup.cfg
'';

View file

@ -0,0 +1,7 @@
[directories]
basedirlist = .
[libs]
system_freetype = true
# LTO not working in darwin stdenv, see #19312
enable_lto = false