pkgsLLVM.libunwind: fix build
This commit is contained in:
parent
2a2377f40e
commit
cc2abedb5b
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue