1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Rename thread compile flag. Move thread test program to tools/thread,

and improve tests.
This commit is contained in:
Bruce Momjian
2003-09-27 15:32:48 +00:00
parent fae2adecf5
commit 227dd9b427
21 changed files with 112 additions and 42 deletions

View File

@ -11,4 +11,4 @@ case $host_os in
esac
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNCS=no # verified 4.3 2003-09-03
NEED_REENTRANT_FUNCS=no # verified 4.3 2003-09-26

View File

@ -7,9 +7,10 @@ esac
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNCS=yes # 4.8, 5.1 2003-09-12
THREAD_CPPFLAGS="-D_THREAD_SAFE"
case $host_os in
freebsd2*|freebsd3*|freebsd4*)
THREAD_CFLAGS="-pthread"
THREAD_LIBS="-pthread"
;;
*)
THREAD_LIBS="-lc_r"

View File

@ -4,6 +4,6 @@ CPPFLAGS="-D_GNU_SOURCE"
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNCS=yes # verified glibc 2.1 2003-09-03
THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
THREAD_CPPFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
THREAD_LIBS="-lpthread"

View File

@ -7,4 +7,4 @@ fi
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNCS=no # 4.0 2003-09-13
THREAD_CFLAGS="-pthread"
THREAD_LIBS="-pthread"

View File

@ -7,5 +7,5 @@ fi
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNCS=yes # 5.6 2003-09-13
THREAD_CFLAGS="-pthread"
THREAD_LIBS="-pthread"

View File

@ -1,14 +1,14 @@
if test "$GCC" = yes; then
CFLAGS=-O2
THREAD_CFLAGS="-pthread"
THREAD_CPPFLAGS="-pthread"
else
# the -Kno_host is temporary for a bug in the compiler. See -hackers
# discussion on 7-8/Aug/2003.
# when the 7.1.3UP3 or later compiler is out, we can do a version check.
CFLAGS='-O -Kinline,no_host'
THREAD_CFLAGS="-K pthread"
THREAD_CPPFLAGS="-K pthread"
fi
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNCS=no # verified 7.1.3 2003-09-03
THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_REENTRANT"