apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@ebuilt.com>
Subject Re: [PATCH] only enable _THREAD_SAFE on AIX when we want/have threads
Date Tue, 22 Jan 2002 23:36:01 GMT
On Tue, Jan 22, 2002 at 11:02:39AM -0800, Aaron Bannert wrote:
> This patch is verified to work on AIX 4.2.1, but it was suggested
> to me by the reporter (Elrond <elrond@samba-tng.org>) that we do
> the same for other platforms for things like _REENTRANT and I
> agree. Does anyone see a reason not to do this?

I think there are some platforms that will do bad things when
_REENTRANT is defined for some libraries and not for others.
I think it's best to always define that wherever possible.
(AIX brain damage excluded.)

> installations of APR in threaded and non-threaded modes. Will we
> eventually go to the libapr.so and libapr_r.so modes?

I don't like this approach.  The reason you would do it for libc
and libc_r is that the codebase is completely separate.  Our code
is unified and we'd require a two-pass compilation system.  I'm
not sure I'd like that.  We'd need to think long and hard before
splitting it out like that.  -- justin

View raw message