Skip to content

Commit

Permalink
matplotlib: Disable LTO on darwin.
Browse files Browse the repository at this point in the history
Needs NixOS#19312 or equivalent to work.
  • Loading branch information
shlevy committed Sep 9, 2020
1 parent 5c84d57 commit 31579c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/matplotlib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';
Expand Down
7 changes: 7 additions & 0 deletions pkgs/development/python-modules/matplotlib/setup-darwin.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[directories]
basedirlist = .

[libs]
system_freetype = true
# LTO not working in darwin stdenv, see #19312
enable_lto = false

0 comments on commit 31579c6

Please sign in to comment.