diff options
author | Dominik Xaver Hörl <hoe.dom@gmx.de> | 2019-12-01 17:43:16 +0100 |
---|---|---|
committer | Dominik Xaver Hörl <hoe.dom@gmx.de> | 2019-12-02 00:43:40 +0100 |
commit | 387b59d9cf038f76130427fa33a3e9752835101a (patch) | |
tree | 0ade7bd4c2c8c4d8b320e2cfd2a34a8faeb023da /pkgs/os-specific/linux/cpupower | |
parent | f36ba34be36c1a35341b533947d06afc5784647b (diff) | |
download | nixpkgs-387b59d9cf038f76130427fa33a3e9752835101a.tar nixpkgs-387b59d9cf038f76130427fa33a3e9752835101a.tar.gz nixpkgs-387b59d9cf038f76130427fa33a3e9752835101a.tar.bz2 nixpkgs-387b59d9cf038f76130427fa33a3e9752835101a.tar.lz nixpkgs-387b59d9cf038f76130427fa33a3e9752835101a.tar.xz nixpkgs-387b59d9cf038f76130427fa33a3e9752835101a.tar.zst nixpkgs-387b59d9cf038f76130427fa33a3e9752835101a.zip |
cpupower: explicitly set CC and LD to allow compilation with clang
Diffstat (limited to 'pkgs/os-specific/linux/cpupower')
-rw-r--r-- | pkgs/os-specific/linux/cpupower/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/cpupower/default.nix b/pkgs/os-specific/linux/cpupower/default.nix index 1b307da8cb8..601810f2600 100644 --- a/pkgs/os-specific/linux/cpupower/default.nix +++ b/pkgs/os-specific/linux/cpupower/default.nix @@ -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}") { |