pkgsStatic.libunwind: fix build

This commit is contained in:
Tobias Mayer 2022-06-16 23:30:57 +02:00 committed by Alyssa Ross
parent 4f9fac0f31
commit 51ca56f0fe

View file

@ -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"