Closed jbruchon closed 8 years ago
I'm curious to know which OS/distribution you're building on that this failed? Did you need any other changes to support that platform? I test on Linux(debian), OS X and OpenSolaris.
I tested on Linux, but not Debian. Without -lpthread GCC throws an error at link time because the object files were compiled with pthreads references but the final binary wasn't being linked against libpthreads. I'm not sure why it would have worked without -lpthreads
.
Without -lpthread passed to ld, the link phase fails.