mpfs: Fix for cross by disabling check

check phase is now only disabled by *default* for cross, but mpfr
was forcing it always.
This commit is contained in:
John Ericson 2017-06-03 16:57:52 -04:00 committed by John Ericson
parent f75ad79375
commit c54c3cb5ce

View File

@ -1,4 +1,6 @@
{ stdenv, fetchurl, gmp }:
{ stdenv, fetchurl, gmp
, buildPlatform, hostPlatform
}:
stdenv.mkDerivation rec {
name = "mpfr-3.1.3";
@ -19,10 +21,10 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "stackprotector" ];
configureFlags =
stdenv.lib.optional stdenv.isSunOS "--disable-thread-safe" ++
stdenv.lib.optional stdenv.is64bit "--with-pic";
stdenv.lib.optional hostPlatform.isSunOS "--disable-thread-safe" ++
stdenv.lib.optional hostPlatform.is64bit "--with-pic";
doCheck = true;
doCheck = hostPlatform == buildPlatform;
enableParallelBuilding = true;