mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Unconditionally define:
-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS for all ports. It can't hurt if they are not supported, but it makes our job easier for porting. Should fix Darwin compile and other platforms without mucking with the thread detection code.
This commit is contained in:
@ -4,6 +4,3 @@ CC="$CC -no-cpp-precomp"
|
||||
|
||||
# Select appropriate semaphore support
|
||||
USE_NAMED_POSIX_SEMAPHORES=1
|
||||
|
||||
# verified Mac OS X 10.3.3, Darwin Kernel Version 7.3.0, 2004-04-07
|
||||
PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
|
||||
|
@ -1,8 +1,3 @@
|
||||
case $host_cpu in
|
||||
alpha*) CFLAGS="-O";; # alpha has problems with -O2
|
||||
esac
|
||||
|
||||
case $host_os in
|
||||
freebsd2*|freebsd3*|freebsd4*) ;;
|
||||
*) PTHREAD_LIBS="c_r";; # do we need this? 2004-04-23
|
||||
esac
|
||||
|
@ -1,5 +1,2 @@
|
||||
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
|
||||
CPPFLAGS="-D_GNU_SOURCE"
|
||||
|
||||
# tools/thread/thread_test must be run
|
||||
PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
|
||||
|
@ -10,4 +10,3 @@ case $host in
|
||||
esac
|
||||
|
||||
# -D_POSIX_PTHREAD_SEMANTICS enables 5-arg getpwuid_r, among other things
|
||||
PTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
|
||||
|
@ -24,8 +24,5 @@ __EOF__
|
||||
PTHREAD_CFLAGS="-Kpthread"
|
||||
fi
|
||||
|
||||
# tools/thread/thread_test must be run
|
||||
PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT"
|
||||
|
||||
# Disabled because flags are required for all apps using libpq.
|
||||
# Waiting to see if other platforms need this too. 2004-03-22
|
||||
|
Reference in New Issue
Block a user