Skip to content

Commit

Permalink
gsl: cap MACOSX_DEPLOYMENT_TARGET at 10.16
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrik committed May 20, 2021
1 parent 2987d66 commit 555cd3e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/libraries/gsl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ stdenv.mkDerivation rec {
sha256 = "1a460zj9xmbgvcymkdhqh313c4l29mn9cffbi5vf33x3qygk70mp";
};

preConfigure = if (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11" && stdenv.isDarwin) then ''
MACOSX_DEPLOYMENT_TARGET=10.16
'' else null;

# do not let -march=skylake to enable FMA (https://lists.gnu.org/archive/html/bug-gsl/2011-11/msg00019.html)
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isx86_64 "-mno-fma";

Expand Down

0 comments on commit 555cd3e

Please sign in to comment.