diff options
author | Adam Joseph <54836058+a-m-joseph@users.noreply.github.com> | 2022-05-09 20:54:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 22:54:42 +0200 |
commit | 3141204b2261ceb8807b7b82dfebe68bf7df3de6 (patch) | |
tree | a220449e8a8d4777b0057badb54d5e258e96eb7b /pkgs/tools/misc/nbench | |
parent | b3f1be780c0ce7d65682b76e6465f10b26dad8d5 (diff) |
nbench: supply stdenv.glibc.static since Makefile uses -static (#172173)
* nbench: supply stdenv.glibc.static since Makefile uses -static nbench's Makefile always compiles with -static, so we need it to be able to see libc.a. Let's add stdenv.glibc.static to the buildInputs. * predicate on isGnu
Diffstat (limited to 'pkgs/tools/misc/nbench')
-rw-r--r-- | pkgs/tools/misc/nbench/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/misc/nbench/default.nix b/pkgs/tools/misc/nbench/default.nix index 16e67b848d65d..744ce314ec4e2 100644 --- a/pkgs/tools/misc/nbench/default.nix +++ b/pkgs/tools/misc/nbench/default.nix @@ -16,6 +16,10 @@ stdenv.mkDerivation rec { substituteInPlace Makefile --replace "-static" "" ''; + buildInputs = lib.optionals stdenv.hostPlatform.isGnu [ + stdenv.glibc.static + ]; + makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; installPhase = '' |