libpfm: fix cross compilation

This commit is contained in:
Jörg Thalheim 2018-11-20 21:44:23 +00:00
parent b3ae7d1c8c
commit 4b6bdc29b0
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA

View File

@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
installFlags = "DESTDIR=\${out} PREFIX= LDCONFIG=true";
makeFlags = [
"ARCH=${stdenv.targetPlatform.uname.processor}"
"SYS=${stdenv.targetPlatform.uname.system}"
];
NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
meta = with stdenv.lib; {