summary refs log tree commit diff
path: root/pkgs/tools/misc/nbench
diff options
context:
space:
mode:
authorAdam Joseph <54836058+a-m-joseph@users.noreply.github.com>2022-05-09 20:54:42 +0000
committerGitHub <noreply@github.com>2022-05-09 22:54:42 +0200
commit3141204b2261ceb8807b7b82dfebe68bf7df3de6 (patch)
treea220449e8a8d4777b0057badb54d5e258e96eb7b /pkgs/tools/misc/nbench
parentb3f1be780c0ce7d65682b76e6465f10b26dad8d5 (diff)
downloadnixpkgs-3141204b2261ceb8807b7b82dfebe68bf7df3de6.tar
nixpkgs-3141204b2261ceb8807b7b82dfebe68bf7df3de6.tar.gz
nixpkgs-3141204b2261ceb8807b7b82dfebe68bf7df3de6.tar.bz2
nixpkgs-3141204b2261ceb8807b7b82dfebe68bf7df3de6.tar.lz
nixpkgs-3141204b2261ceb8807b7b82dfebe68bf7df3de6.tar.xz
nixpkgs-3141204b2261ceb8807b7b82dfebe68bf7df3de6.tar.zst
nixpkgs-3141204b2261ceb8807b7b82dfebe68bf7df3de6.zip
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.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/misc/nbench/default.nix b/pkgs/tools/misc/nbench/default.nix
index 16e67b848d6..744ce314ec4 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 = ''