freebsd.libthr: don't leave dangling symlink in static configuration (#384013)

This commit is contained in:
John Ericson
2025-02-21 17:44:23 -05:00
committed by GitHub
@@ -1,4 +1,6 @@
{
lib,
stdenv,
mkDerivation,
libcMinimal,
include,
@@ -33,5 +35,9 @@ mkDerivation {
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -B${csu}/lib"
'';
postInstall = lib.optionalString stdenv.hostPlatform.isStatic ''
rm $out/lib/libpthread.so
'';
env.MK_TESTS = "no";
}