Michael Haubenwallner
2011-05-27 13:04:23 UTC
Hello!
To use "pthread", the correct usage with gcc (instead of linking '-lpthread') is
via the '-pthread' compiler flag, which is '-pthreads' with older gcc on Solaris.
However, this has to be passed for compilation already, not just for linking.
Attached is a patch that switches to '-pthread' (on Solaris: '-pthreads') compiler
flag with gcc, and does this even for compilation.
Thank you!
/haubi/
To use "pthread", the correct usage with gcc (instead of linking '-lpthread') is
via the '-pthread' compiler flag, which is '-pthreads' with older gcc on Solaris.
However, this has to be passed for compilation already, not just for linking.
Attached is a patch that switches to '-pthread' (on Solaris: '-pthreads') compiler
flag with gcc, and does this even for compilation.
Thank you!
/haubi/
--
Michael Haubenwallner
Gentoo on a different level
Michael Haubenwallner
Gentoo on a different level