mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +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:
14
configure
vendored
14
configure
vendored
@ -13387,10 +13387,11 @@ echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
|
||||
echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
|
||||
echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
|
||||
flag=no
|
||||
case "${host_cpu}-${host_os}" in
|
||||
*-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
|
||||
*solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
|
||||
esac
|
||||
# We handle this ourselves in PostgreSQL
|
||||
# case "${host_cpu}-${host_os}" in
|
||||
# *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
|
||||
# *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
|
||||
# esac
|
||||
echo "$as_me:$LINENO: result: ${flag}" >&5
|
||||
echo "${ECHO_T}${flag}" >&6
|
||||
if test "x$flag" != xno; then
|
||||
@ -13465,6 +13466,11 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||
|
||||
# set thread flags
|
||||
|
||||
# Some platforms use these, so just defineed them. They can't hurt if they
|
||||
# are not supported.
|
||||
PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
|
||||
|
||||
|
||||
# At this point, we don't want to muck with the compiler name for threading.
|
||||
# Let's see who fails, perhaps AIX. 2004-04-23
|
||||
if test "$PTHREAD_CC" != "$CC"; then
|
||||
|
Reference in New Issue
Block a user