The lack of a portable option to enable pthreads is a significant annoyance. It is mentioned in bug 8888, and bug 18788 is also relevant, but those are separate bugs. See also the discussion in <http://groups.google.co.uk/groups?threadm=8764z82jd8.fsf%40qrnik.zagroda>.
Workaround: use autoconf with <http://ac-archive.sourceforge.net/Installed_Packages/acx_pthread.html>. This is not suitable for all projects. -- Summary: -pthread should enable all options required to use pthreads on all platforms Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: david dot nospam dot hopwood at blueyonder dot co dot uk CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20705