Hello John, * John R. Cary wrote on Sun, Nov 28, 2010 at 03:02:48PM CET: > I am tring to link with libtool using the compiler > wrappers on a Cray and with pgi. > > At final link, libtool inserts the flag, -pthread, which > causes the compiler to fail. This is shown below.
Uh, that's probably because one of the installed libtool libraries you link against was compiled with GCC and with -pthread, so it has that flag in its inherited_linker_flags. Easiest workaround would be to remove that from the *.la file. And yes, this is a libtool bug. It should translate -pthread to the spelling that your compiler uses for enabling threads. Thanks for the report, Ralf _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool