autoconf
[Top][All Lists]
Advanced

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

Re: autoconf, sendmail, and pthreads


From: Ganesan Rajagopal
Subject: Re: autoconf, sendmail, and pthreads
Date: 22 Dec 2000 08:42:29 +0530
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef)

>>>>> "Bob" == Bob Friesenhahn <address@hidden> writes:

> On Thu, 21 Dec 2000 address@hidden wrote:
>> 
>> -pthread -- is for gcc

> Support for -pthread in gcc is non-standard.  It is not supported by
> the standard GNU compiler (e.g. 2.95.2) when configured and compiled
> from distributed sources.

> The portable way to support POSIX threads for SunOS 5.6 and later is
> to add -D_REENTRANT to the compilation defines, and -lpthread to the
> libraries. Use of -lposix4 is optional, and is not necessarily
> required in order to use -lpthread.  See the threads(3t) manual page.

This is correct. -lposix4 is needed only if you need sched_yield() or
POSIX 1003.1b semaphores. 

Ganesan


-- 
R. Ganesan (address@hidden)       | Ph: 91-80-5721856 Ext: 2149
Novell India Development Center.       | #include <std_disclaimer.h>




reply via email to

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