libunwind: fix for aarch64 and non-4K pages (#166006)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
main
Thomas 2 years ago committed by GitHub
parent ef9896e717
commit e9cfdc6b77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      pkgs/development/libraries/libunwind/default.nix

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, autoreconfHook, xz, buildPackages }:
{ stdenv, lib, fetchurl, fetchpatch, autoreconfHook, xz, buildPackages }:
stdenv.mkDerivation rec {
pname = "libunwind";
@ -9,6 +9,14 @@ stdenv.mkDerivation rec {
sha256 = "sha256-SmrsZmmR+0XQiJxErt6K1usQgHHDVU/N/2cfnJR5SXY=";
};
patches = [
# Fix for aarch64 and non-4K pages. Remove once upgraded past 1.6.2.
(fetchpatch {
url = "https://github.com/libunwind/libunwind/commit/e85b65cec757ef589f28957d0c6c21c498a03bdf.patch";
sha256 = "1lnlygvhqrdrjgw303pg2k2k4ms4gaghpjsgmhk47q83vy1yjwfg";
})
];
postPatch = if stdenv.cc.isClang then ''
substituteInPlace configure.ac --replace "-lgcc_s" ""
'' else lib.optionalString stdenv.hostPlatform.isMusl ''

Loading…
Cancel
Save