From: | <wespvp(at)syntegra(dot)com> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | PostgreSQL-general <pgsql-general(at)postgresql(dot)org>, joseph speigle <joe(dot)speigle(at)jklh(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | Re: thread_test.c problems |
Date: | 2004-04-07 18:13:27 |
Message-ID: | BC99AEF7.C36F%wespvp@syntegra.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
[Sorry about the duplicate]
On 4/7/04 9:22 AM, "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:
> Are any special thread flags needed? What version of Darwin are you
> using?
I am running Mac OS X 10.3.3. Uname -a shows that as
Darwin Kernel Version 7.3.0
I took the flags from the linux version. It appears to work ok - at least
it compiles and runs ok. I'm not sure how to verify threading is working
correctly... What I have is:
# Apple's cpp-precomp seems a tad broken, so don't use it
# (Note: on OS X before 10.2, you might need -traditional-cpp instead)
CC="$CC -no-cpp-precomp"
# Select appropriate semaphore support
USE_NAMED_POSIX_SEMAPHORES=1
# tools/thread/thread_test must be run
THREAD_SUPPORT=yes
THREAD_CPPFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
THREAD_LIBS="-lpthread"
STRERROR_THREADSAFE=yes
GETPWUID_THREADSAFE=yes
GETHOSTBYNAME_THREADSAFE=yes
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-04-07 18:32:07 | Re: thread_test.c problems |
Previous Message | Wes Palmer | 2004-04-07 18:12:44 | Re: thread_test.c problems |