libtool
[Top][All Lists]
Advanced

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

Re: Problem with libtool adding -pthread


From: John R. Cary
Subject: Re: Problem with libtool adding -pthread
Date: Sun, 28 Nov 2010 10:39:08 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6

On 11/28/10 10:25 AM, Ralf Wildenhues wrote:
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


Thanks, Ralf.  Unfortunately, I cannot apply your suggested fix,
as the library is a system library.

For now I have a workaround that I just drop back to the
the non libtool way for linking C++ code that links in a fortran
library.

Thx.....John




reply via email to

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