pkgsStatic.libunwind: fix build
This commit is contained in:
parent
4f9fac0f31
commit
51ca56f0fe
|
@ -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" ""
|
substituteInPlace configure.ac --replace "-lgcc_s" ""
|
||||||
'' else lib.optionalString stdenv.hostPlatform.isMusl ''
|
'' else lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
substituteInPlace configure.ac --replace "-lgcc_s" "-lgcc_eh"
|
substituteInPlace configure.ac --replace "-lgcc_s" "-lgcc_eh"
|
||||||
|
|
Loading…
Reference in a new issue