freebsd.libthr: don't leave dangling symlink in static configuration

This commit is contained in:
Audrey Dutcher
2025-02-21 12:03:33 -07:00
parent 6555fbaa43
commit a3dc5ee345
@@ -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";
}