libpfm: use hostPlatform

(cherry picked from commit 08f5b419b9efc77db044f8c1d725632552617966)
This commit is contained in:
Matthew Bauer 2019-01-31 13:50:53 -05:00
parent e36cd48b6e
commit 76474b2da7

View File

@ -12,8 +12,8 @@ stdenv.mkDerivation rec {
makeFlags = [
"PREFIX=${placeholder "out"}"
"LDCONFIG=true"
"ARCH=${stdenv.targetPlatform.uname.processor}"
"SYS=${stdenv.targetPlatform.uname.system}"
"ARCH=${stdenv.hostPlatform.uname.processor}"
"SYS=${stdenv.hostPlatform.uname.system}"
];
NIX_CFLAGS_COMPILE = [ "-Wno-error" ];