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
Tony Hutter <hutter2@llnl.gov>Committed on Jul 17 2024, 9:54 PM
Parents
rGbc42d96d66d9: Unbreak FreeBSD cross-build on MacOS broken in 051460b8b
Branches
Unknown
Tags
Unknown