From 51ca56f0fee6fa5683d3d057fc93cb6cfb015951 Mon Sep 17 00:00:00 2001 From: Tobias Mayer Date: Thu, 16 Jun 2022 23:30:57 +0200 Subject: [PATCH] pkgsStatic.libunwind: fix build --- pkgs/development/libraries/libunwind/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libunwind/default.nix b/pkgs/development/libraries/libunwind/default.nix index bda9001f913..89ca036eeed 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"