Created attachment 203171 [details] Proposed patch This fixes the build in HEAD after lld received support for --no-allow-shlib-undefined in base r345349. Upstream looks for libpthread in sem_init(3), which is part of libc on FreeBSD. Look for a symbol that's in libpthread to make sure we link against it. See also: https://github.com/tesseract-ocr/tesseract/issues/2344
(In reply to Raphael Kubo da Costa from comment #0) Looks good, accepted.
A commit references this bug: Author: rakuco Date: Wed Mar 27 07:50:52 UTC 2019 New revision: 496936 URL: https://svnweb.freebsd.org/changeset/ports/496936 Log: Make sure the port links against libthr.so This fixes the build in HEAD after lld received support for --no-allow-shlib-undefined in base r345349. Upstream looks for libpthread in sem_init(3), which is part of libc on FreeBSD. Look for a symbol that's in libpthread to make sure we link against it. See also: https://github.com/tesseract-ocr/tesseract/issues/2344 PR: 236812 Approved by: Piotr Kubaj <pkubaj@anongoth.pl> (maintainer) Changes: head/graphics/tesseract/Makefile head/graphics/tesseract/files/ head/graphics/tesseract/files/patch-configure.ac