[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with libtool adding -pthread

From: Ralf Wildenhues
Subject: Re: Problem with libtool adding -pthread
Date: Sun, 28 Nov 2010 18:25:01 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

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,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]