libtool-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] OpenBSD -pthread fix


From: Cezary Kaliszyk
Subject: Re: [PATCH] OpenBSD -pthread fix
Date: Sun, 21 Sep 2003 15:30:05 +0200
User-agent: Mutt/1.5.4i

On Sun, Sep 21, 2003 at 11:41:37PM +0900, Peter O'Gorman wrote:
> Bob Friesenhahn wrote:
> 
> >If options like -pthread are not passed through then the link may fail
> >or produce the wrong result since -pthread may secretly add libraries,
> >or change the entire library selection logic.  I have developed for an
> >OS (LynxOS) which provided a completely different set of libraries if
> >-pthread was specified.
> 
> So -pthread needs special treatment, fair enough. As far as I know 
> (haven't checked) -pthread does not get put into dependency_libs by 
> current cvs libtool, if it requires special treatment, it ought to be 
> written there as well as read and passed through to the linker. Correct?
> 
> Peter
> 

I checked it, current libtool doesn't put -pthread in dependency_libs,
and when linking against libtest.la there are many like:

a.o: Undefined symbol `_pthread_exit' referenced from text segment

So (at least on OpenBsd/i386) it should be written and passed to the
linker as You suggested. 

Cezary





reply via email to

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