[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: 4.0.4: Solaris, Tru64 UNIX patches
- From: Albert Chin <rpm-list thewrittenword com>
- To: Chris Adams <cmadams hiwaay net>
- Cc: rpm-list redhat com
- Subject: Re: 4.0.4: Solaris, Tru64 UNIX patches
- Date: Mon, 13 May 2002 22:19:29 -0500
On Mon, May 13, 2002 at 09:13:40PM -0500, Chris Adams wrote:
> Once upon a time, Albert Chin <rpm-list@thewrittenword.com> said:
> > 1. configure.in
> > Better pthread check. It is possible to test for pthread functions
> > even if <pthread.h> renames them. By #including <pthread.h>, we
> > can do this. We have a similar patch for beecrypt/configure.in.
>
> The official way to get pthread support on Tru64 with the Compaq C
> compiler is to use "-pthread" in the CFLAGS. You aren't supposed to add
> "-lpthread" to the libraries manually.
>
> If you use gcc, you need to compile with "-D_REENTRANT" and link with
> "-lpthread -lexc" at the end of the line.
>
> I guess the configure should check the setting of CC to determine the
> correct flags.
The only reason RPM searches for the pthread library is to detect if
Berkeley DB needs to be linked against it. So, we should be able to
get away with this lax test. But, your points above are correct.
--
albert chin (china@thewrittenword.com)
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]