pkgsStatic.libunwind: fix build, fixes #81198
This commit is contained in:
parent
ce9bec83da
commit
68058c66ac
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, autoreconfHook, xz }:
|
{ stdenv, lib, fetchurl, autoreconfHook, xz }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libunwind";
|
pname = "libunwind";
|
||||||
@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [ ./backtrace-only-with-glibc.patch ];
|
patches = [ ./backtrace-only-with-glibc.patch ];
|
||||||
|
|
||||||
|
postPatch = lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
|
substituteInPlace configure.ac --replace "-lgcc_s" "-lgcc_eh"
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user