The threading library must be linked to the binaries using
a special flag -pthread on FreeBSD. If
a port insists on linking -lpthread
directly, patch it to use -pthread.
If building the port errors out with
unrecognized option '-pthread', it may be
desirable to use cc as linker by setting
CONFIGURE_ENV to
LD=${CC}. The
-pthread option is not supported by
ld directly.
This, and other documents, can be downloaded from ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/
For questions about FreeBSD, read the
documentation before
contacting <questions@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.