gsl: cap MACOSX_DEPLOYMENT_TARGET at 10.16
This commit is contained in:
parent
14f3686af1
commit
274ec21015
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user