about summary refs log tree commit diff
path: root/pkgs/development/libraries/libunwind
diff options
context:
space:
mode:
authorTobias Mayer <tobim@fastmail.fm>2022-06-16 23:30:57 +0200
committerAlyssa Ross <hi@alyssa.is>2022-06-20 12:29:00 +0000
commit51ca56f0fee6fa5683d3d057fc93cb6cfb015951 (patch)
tree8eb4759f7e62ce98cad9ad9ee6d65f2ab7867431 /pkgs/development/libraries/libunwind
parent4f9fac0f31d2d9268ea1d78a7ce50c7965dc2e47 (diff)
pkgsStatic.libunwind: fix build
Diffstat (limited to 'pkgs/development/libraries/libunwind')
-rw-r--r--pkgs/development/libraries/libunwind/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libunwind/default.nix b/pkgs/development/libraries/libunwind/default.nix
index bda9001f913fa..89ca036eeed4f 100644
--- a/pkgs/development/libraries/libunwind/default.nix
+++ b/pkgs/development/libraries/libunwind/default.nix
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
     })
   ];
 
-  postPatch = if stdenv.cc.isClang then ''
+  postPatch = if (stdenv.cc.isClang || stdenv.hostPlatform.isStatic) then ''
     substituteInPlace configure.ac --replace "-lgcc_s" ""
   '' else lib.optionalString stdenv.hostPlatform.isMusl ''
     substituteInPlace configure.ac --replace "-lgcc_s" "-lgcc_eh"