This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: all Objective-C tests failing on Solaris


On Wed, 13 Jan 1999, Nick Ing-Simmons wrote:

> Joe Buck <jbuck@Synopsys.COM> writes:
> >> 
> >> Solaris documentation specifically states that you have to link -lpthread
> >> -lthread, not just -lpthread.
> >
> >That won't provide a definition of sched_yield; it is in neither library.
> 
> It is -lposix4 or some such on Solaris2.6 and later. 2.5 just does not have 
> it at all.

My understanding.

	-lthread has the actual Solaris thread stuff

	-lpthread adds POSIX thread wrappers around them

	-lposix4 has sched_yield (even in 2.5.1)

	-sched_yield() at least in 2.5.1, always returns
	 -1, and does nothing. 

I tend to link with: -lposix4 -lthread -lpthread

-B


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]