Unverified Commit f60a8990 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

pkgsStatic.strace: fix build

Static-only elfutils builds are not supported.

Fixes: a48232a4 ("strace: 6.6 -> 6.7")
parent df519605
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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" ];