HomeFreeBSD

libspl_assert: always link -lpthread on FreeBSD

Description

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

Details

Provenance
rob.norris_klarasystems.comAuthored on May 9 2024, 2:43 PM
GitHub <noreply@github.com>Committed on May 9 2024, 2:43 PM
Parents
rG414acbd37e0a: Unbreak FreeBSD cross-build on MacOS broken in 051460b8b
Branches
Unknown
Tags
Unknown