I see this recent post on the same subject:

http://lists.gnu.org/archive/html/libtool/2010-11/msg00035.html

 

PGI offers this work-around:

http://www.pgroup.com/userforum/viewtopic.php?p=8419&sid=2b25bde02111e5b26f00709197c2a5eb

Which means you create a ~/siterc file with the contents:

switch -pthread is replace(-lpthread) positional(linker);

 

I’ve verified that the work-around works, but it would be nice to get this fixed in libtool.

 

What’s the bugfix status on translating –pthread to –lpthread for PGI compilers?

__________________________________________________
Jeff Daily
Scientist
DATA INTENSIVE SCIENTIFIC COMPUTING

Pacific Northwest National Laboratory
902 Battelle Boulevard
P.O. Box 999, MSIN K7-90
Richland, WA  99352 USA
Tel:  509-372-6548
Fax: 509-372-4720
jeff.daily@pnnl.gov
www.pnnl.gov