pkgsStatic.strace: fix build

Static-only elfutils builds are not supported.

Fixes: a48232a475ff ("strace: 6.6 -> 6.7")
This commit is contained in:
Alyssa Ross 2024-02-19 01:37:06 +01:00
parent df51960570
commit f60a899000
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

@ -12,9 +12,12 @@ stdenv.mkDerivation rec {
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ perl ];
# libunwind for -k.
# On RISC-V platforms, LLVM's libunwind implementation is unsupported by strace.
# The build will silently fall back and -k will not work on RISC-V.
buildInputs = [ libunwind elfutils ]; # support -k and -kk
buildInputs = [ libunwind ]
# -kk
++ lib.optional (lib.meta.availableOn stdenv.hostPlatform elfutils) elfutils;
configureFlags = [ "--enable-mpers=check" ];