libspl_assert: always link -lpthread on FreeBSD #16168
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Build failure on FreeBSD 13.
Description
The
pthread_*
functions are in-lpthread
on FreeBSD. Some of them are implicitly linked through libc, but on FreeBSD 13 at leastpthread_getname_np()
is not. Just be explicit, since-lpthread
is the documented interface anyway.How Has This Been Tested?
Checked build on 13 & 14 with and without. 13 didn't build without previously, now does.
I suspect this made it past CI in #16140 because it found libunwind there, and that brought libpthread along. Can't confirm because the checks appear to be gone from that PR now, but it feels plausible.
Types of changes
Checklist:
Signed-off-by
.