gsl: cap MACOSX_DEPLOYMENT_TARGET at 10.16

This commit is contained in:
Ivan Babrou 2021-05-13 19:50:31 -07:00 committed by Jonathan Ringer
parent 14f3686af1
commit 274ec21015

View File

@ -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";