This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: all Objective-C tests failing on Solaris
- To: Nick Ing-Simmons <nik at tiuk dot ti dot com>
- Subject: Re: all Objective-C tests failing on Solaris
- From: Bob McWhirter <bob at werken dot com>
- Date: Wed, 13 Jan 1999 14:42:25 -0500 (EST)
- cc: egcs at cygnus dot com
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