I noticed that -pthread is supported on the following systems (on i386,
and, as far as I see, many other hardware platforms)
linux.h:#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}
%{pthread:-D_REENTRANT}"
linux64.h:#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}
%{pthread:-D_REENTRANT}"
sysv5.h:#define LIB_SPEC "%{pthread:-lthread} %{pthreadT:-lthreadT} \
sysv5.h:#define CPP_SPEC "%{pthread:-D_REENTRANT}
%{pthreadT:-D_REENTRANT}"
but apparently not documented in our manuals.
Kean, would you mind having a look? (As for *-linux-gnu, we don't have
a specific maintainer, that's why I'm posting this to the gcc list.)
Gerald
--
Gerald Pfeifer (Jerry) gerald@pfeifer.com
http://www.pfeifer.com/gerald/