pkgsStatic.libunwind: fix build, fixes #81198

This commit is contained in:
Frederik Rietdijk 2020-03-29 10:55:17 +02:00 committed by Frederik Rietdijk
parent ce9bec83da
commit 68058c66ac

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, autoreconfHook, xz }:
{ stdenv, lib, fetchurl, autoreconfHook, xz }:
stdenv.mkDerivation rec {
pname = "libunwind";
@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
patches = [ ./backtrace-only-with-glibc.patch ];
postPatch = lib.optionalString stdenv.hostPlatform.isMusl ''
substituteInPlace configure.ac --replace "-lgcc_s" "-lgcc_eh"
'';
nativeBuildInputs = [ autoreconfHook ];
outputs = [ "out" "dev" ];