Re: Fun with libpthread.so




John Dallman [311000] wrote:
"David Schwartz" <davids@xxxxxxxxxxxxx> wrote

There is an RS/6000-specific '-pthread' option because threads
interacts with the SP Parallel Environment. But this doesn't mean there
isn't also a '-pthread' option for x86-64 (which is also in the
manpage, most likely).

Actually it isn't. Which was why I queried it. I've tried it, and GCC
don;t complain it's invalid; it does say this:

cc: -lpthread: linker input file unused because linking not done
cc: -lpthread_nonshared: linker input file unused because linking not done

John

Weird, that sounds like your gcc build is broken. The '-pthread' option
is supposed to do whatever is needed to get pthreads support, no more,
no less. It should not expand to options that are not needed for the
particular operation requested, or if it does, they should not report
an error.

DS

.