what is pthread
The -pthread option is probably an option that's required to build. threaded programs with a specific compiler on a specific platform. For. example, gcc on FreeBSD uses -pthread to link with an alternate version. of libc. FreeBSD doesn't have a separate pthread library, so using. -lpthread wouldn't work.