logo       

Re: libtool 1.5.x linking regression on Tru64 (-pthread): msg#00071

gnu.libtool.general

Subject: Re: libtool 1.5.x linking regression on Tru64 (-pthread)

On Thu, Feb 19, 2004 at 12:07:21PM -0600, Tim Mooney wrote:
> Given a project that uses libtool 1.4.3 and also uses pthreads, it's
> common to have `-pthread' in CFLAGS when configuring the project. The man
> page for cc defines -pthread as:
>
> -pthread
> Directs the linker to use the threadsafe version of any library speci-
> fied with the -l option when linking programs. This option also tells
> the linker to include the POSIX 1003.1c-conformant DECthreads inter-
> faces in libpthread when linking the program. This option also defines
> the _REENTRANT macro.
>
> In any case, for 1.4.3 compiling with libtool works correctly, and linking
> shared libraries also works as expected.
>
> If the project is updated to use libtool 1.5.2, though, linking fails,
> because `-pthread' is now being passed to ld, and ld doesn't understand
> that option.
>
> I haven't had a chance to look much at the problem, but thought I would
> report it. Please let me know if I can provide additional information.

I noticed this too but haven't had a chance to look into it. Maybe
this weekend.

--
albert chin (china@xxxxxxxxxxxxxxxxxx)


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise