diff --git a/pkgs/development/libraries/gmp/6.x.nix b/pkgs/development/libraries/gmp/6.x.nix index 177c15670526d..d87ccbd39120e 100644 --- a/pkgs/development/libraries/gmp/6.x.nix +++ b/pkgs/development/libraries/gmp/6.x.nix @@ -48,6 +48,10 @@ let self = stdenv.mkDerivation rec { ++ optional (!withStatic && stdenv.hostPlatform.isWindows) "--disable-static --enable-shared" ++ optional (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) "--disable-assembly"; + # Required for "undefined reference to __memset_chk" error + # see https://github.com/msys2/MINGW-packages-dev/pull/6 + NIX_LDFLAGS = lib.optionalString stdenv.targetPlatform.isWindows "-lssp"; + doCheck = true; # not cross; dontDisableStatic = withStatic;