In the patches/patch-* files of the ports tree, there's 609 lines with "-pthread" (mostly additions) and 432 lines with "-lpthread" (mostly removal). Some are just comments but most of the important patches are typically in make files (of assorted GNU flavors) or configure scripts (again of assorted GNU flavors).
$ cd /usr/ports $ find . -type f -name patch\* -print0 | \ xargs -0 grep -E '^\+.*\-pthread|^\-.*\-lpthread' | \ wc -l 863 The number of lines of patches we'll need to maintain to deal with the '-lpthread' versus '-pthread' conflict is only going to get worse over time assuming more applications become multi-threaded. Is there an acceptable way to avoid all the '-lpthread' to '-pthread' patching? Is it even worth fixing? If so, where/how?