pkgsLLVM.libunwind: fix build

This commit is contained in:
Jörg Thalheim 2021-12-06 19:40:56 +01:00
parent 2a2377f40e
commit cc2abedb5b

View file

@ -19,7 +19,9 @@ stdenv.mkDerivation rec {
})
];
postPatch = lib.optionalString stdenv.hostPlatform.isMusl ''
postPatch = if stdenv.cc.isClang then ''
substituteInPlace configure.ac --replace "-lgcc_s" ""
'' else lib.optionalString stdenv.hostPlatform.isMusl ''
substituteInPlace configure.ac --replace "-lgcc_s" "-lgcc_eh"
'';