cpupower: explicitly set CC and LD to allow compilation with e… (#74810)

cpupower: explicitly set CC and LD to allow compilation with e.g. clang
This commit is contained in:
Jörg Thalheim 2019-12-02 09:59:45 +00:00 committed by GitHub
commit 2e64e975bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,11 @@ stdenv.mkDerivation {
sed -i 's,/usr/bin/install,${buildPackages.coreutils}/bin/install,' Makefile
'';
makeFlags = [ "CROSS=${stdenv.cc.targetPrefix}" ];
makeFlags = [
"CROSS=${stdenv.cc.targetPrefix}"
"CC=${stdenv.cc.targetPrefix}cc"
"LD=${stdenv.cc.targetPrefix}cc"
];
installFlags = stdenv.lib.mapAttrsToList
(n: v: "${n}dir=${placeholder "out"}/${v}") {