libpmc: Fix for cross by disabling check

Check phase is now only disabled *by default* for cross, but this
package was forcing it unconditionally.
This commit is contained in:
John Ericson 2017-06-04 13:29:02 -04:00 committed by John Ericson
parent ff6ab1b3c4
commit 54089620f5

View File

@ -1,4 +1,8 @@
{ fetchurl, stdenv, gmp, mpfr }:
{ stdenv, fetchurl
, gmp, mpfr
, buildPlatform, hostPlatform
}:
let
version = "1.0.3";
in
@ -14,7 +18,7 @@ stdenv.mkDerivation rec {
CFLAGS = "-I${gmp.dev}/include";
doCheck = true;
doCheck = hostPlatform == buildPlatform;
# FIXME needs gcc 4.9 in bootstrap tools
hardeningDisable = [ "stackprotector" ];