mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-05 09:58:50 +03:00
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
This commit is contained in:
parent
b3f1be780c
commit
3141204b22
@ -16,6 +16,10 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace Makefile --replace "-static" ""
|
substituteInPlace Makefile --replace "-static" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
buildInputs = lib.optionals stdenv.hostPlatform.isGnu [
|
||||||
|
stdenv.glibc.static
|
||||||
|
];
|
||||||
|
|
||||||
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user