3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #34017 from dtzWill/fix/perf-compilation

Fix build of linuxPackages.perf
This commit is contained in:
Orivej Desh 2018-01-19 19:57:47 +00:00 committed by GitHub
commit c053bab151
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ assert versionAtLeast kernel.version "3.12";
stdenv.mkDerivation {
name = "perf-linux-${kernel.version}";
inherit (kernel) src makeFlags;
inherit (kernel) src;
preConfigure = ''
cd tools/perf
@ -39,6 +39,10 @@ stdenv.mkDerivation {
"-Wno-error=unused-const-variable" "-Wno-error=misleading-indentation"
];
makeFlags = if stdenv.hostPlatform == stdenv.buildPlatform
then null
else "CROSS_COMPILE=${stdenv.cc.targetPrefix}";
installFlags = "install install-man ASCIIDOC8=1";
preFixup = ''