]> git.proxmox.com Git - mirror_zfs.git/commit
libspl_assert: always link -lpthread on FreeBSD
authorRob N <robn@despairlabs.com>
Thu, 9 May 2024 14:43:48 +0000 (00:43 +1000)
committerGitHub <noreply@github.com>
Thu, 9 May 2024 14:43:48 +0000 (07:43 -0700)
commit1ede0c716beeee4a720ff5c361121021555d7e3c
treec46a0b86822d7ba3dc2f2b69376c01565c98fe25
parent414acbd37e0a1121e93310e88956e30554ad1dae
libspl_assert: always link -lpthread on FreeBSD

The pthread_* functions are in -lpthread on FreeBSD. Some of them are
implicitly linked through libc, but on FreeBSD 13 at least
pthread_getname_np() is not. Just be explicit, since -lpthread is the
documented interface anyway.

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #16168
lib/libspl/Makefile.am