Skip to content

Commit ef67097

Browse files
authored
freebsd.libthr: don't leave dangling symlink in static configuration (#384013)
2 parents 9069f7f + a3dc5ee commit ef67097

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/os-specific/bsd/freebsd/pkgs/libthr.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
lib,
3+
stdenv,
24
mkDerivation,
35
libcMinimal,
46
include,
@@ -33,5 +35,9 @@ mkDerivation {
3335
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -B${csu}/lib"
3436
'';
3537

38+
postInstall = lib.optionalString stdenv.hostPlatform.isStatic ''
39+
rm $out/lib/libpthread.so
40+
'';
41+
3642
env.MK_TESTS = "no";
3743
}

0 commit comments

Comments
 (0)