Skip to content

Commit 56d2260

Browse files
committed
libipt: fix linkage on FreeBSD. this fixes the gdb build
1 parent 42ee065 commit 56d2260

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkgs/by-name/li/libipt/package.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ stdenv.mkDerivation rec {
2020
nativeBuildInputs = [ cmake ];
2121
buildInputs = lib.optional stdenv.hostPlatform.isFreeBSD freebsd.libstdthreads;
2222

23+
env = lib.optionalAttrs stdenv.hostPlatform.isFreeBSD {
24+
NIX_LDFLAGS = "-lstdthreads";
25+
};
26+
2327
meta = with lib; {
2428
description = "Intel Processor Trace decoder library";
2529
homepage = "https://github.com/intel/libipt";

0 commit comments

Comments
 (0)