git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit2e64e975bbff9b2fd30dc45f63726528c393fdb7 authorJörg Thalheim <Mic92@users.noreply.github.com> dateMon 2 Dec 2019, 09:59 (7 years ago) parent7ca8fee387b59d
1 file changed+5−1
pkgs/os-specific/linux/cpupower/default.nix+5−1
pkgs/os-specific/linux/cpupower/default.nix+5−1
@@ -14,7 +14,11 @@ stdenv.mkDerivation {
1414 sed -i 's,/usr/bin/install,${buildPackages.coreutils}/bin/install,' Makefile
1515 '';
1616
17− makeFlags = [ "CROSS=${stdenv.cc.targetPrefix}" ];
17+ makeFlags = [
18+ "CROSS=${stdenv.cc.targetPrefix}"
19+ "CC=${stdenv.cc.targetPrefix}cc"
20+ "LD=${stdenv.cc.targetPrefix}cc"
21+ ];
1822
1923 installFlags = stdenv.lib.mapAttrsToList
2024 (n: v: "${n}dir=${placeholder "out"}/${v}") {