diff options
| author | Bruce Momjian | 2004-02-11 21:44:06 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2004-02-11 21:44:06 +0000 |
| commit | c6f05593710757351535cc80a3872152d91e5cef (patch) | |
| tree | b6381cb0ff9a63a2f38eda1d139b60f3946c08b6 /src/template | |
| parent | 15b330b648553627230a11adce304103a55e0b62 (diff) | |
Check and set thread-safe functions separately, rather than as a single
variable.
Remove thread locking for non-thread-safe functions, instead throw a
compile error.
Platforms will have to re-run tools/thread to record their thread
safety.
Diffstat (limited to 'src/template')
| -rw-r--r-- | src/template/bsdi | 5 | ||||
| -rw-r--r-- | src/template/freebsd | 3 | ||||
| -rw-r--r-- | src/template/linux | 3 | ||||
| -rw-r--r-- | src/template/netbsd | 3 | ||||
| -rw-r--r-- | src/template/osf | 3 | ||||
| -rw-r--r-- | src/template/solaris | 3 | ||||
| -rw-r--r-- | src/template/unixware | 3 |
7 files changed, 10 insertions, 13 deletions
diff --git a/src/template/bsdi b/src/template/bsdi index 4c62ce4421..dd750bdc99 100644 --- a/src/template/bsdi +++ b/src/template/bsdi @@ -3,4 +3,7 @@ case $host_os in esac THREAD_SUPPORT=yes -NEED_REENTRANT_FUNCS=no # verified 4.3 2003-09-26 +# verified 4.3.1 2004-02-11 +STRERROR_THREADSAFE=yes +GETPWUID_THREADSAFE=yes +GETHOSTBYNAME_THREADSAFE=yes diff --git a/src/template/freebsd b/src/template/freebsd index 2b155d12db..c78b87bd76 100644 --- a/src/template/freebsd +++ b/src/template/freebsd @@ -2,8 +2,7 @@ case $host_cpu in alpha*) CFLAGS="-O";; # alpha has problems with -O2 esac -THREAD_SUPPORT=yes -NEED_REENTRANT_FUNCS=yes +# tools/thread/thread_test must be run THREAD_CPPFLAGS="-D_THREAD_SAFE" case $host_os in freebsd2*|freebsd3*|freebsd4*) THREAD_LIBS="-pthread";; diff --git a/src/template/linux b/src/template/linux index 529da9c169..7469b33107 100644 --- a/src/template/linux +++ b/src/template/linux @@ -1,7 +1,6 @@ # Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise CPPFLAGS="-D_GNU_SOURCE" -THREAD_SUPPORT=yes -NEED_REENTRANT_FUNCS=yes # Debian kernel 2.2 2003-09-27 +# tools/thread/thread_test must be run THREAD_CPPFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS" THREAD_LIBS="-lpthread" diff --git a/src/template/netbsd b/src/template/netbsd index 0d119a0136..1cb953c7fb 100644 --- a/src/template/netbsd +++ b/src/template/netbsd @@ -1,2 +1 @@ -THREAD_SUPPORT=yes -NEED_REENTRANT_FUNCS=yes # 1.6 2003-09-14 +# tools/thread/thread_test must be run diff --git a/src/template/osf b/src/template/osf index 9d2d6b81c1..c331ed7f3d 100644 --- a/src/template/osf +++ b/src/template/osf @@ -3,8 +3,7 @@ if test "$GCC" != yes ; then CFLAGS="-O -ieee" fi -THREAD_SUPPORT=yes -NEED_REENTRANT_FUNCS=no # 4.0 2003-09-13 +# tools/thread/thread_test must be run if test "$GCC" = yes then THREAD_LIBS="-pthread" else THREAD_CPPFLAGS="-pthread" diff --git a/src/template/solaris b/src/template/solaris index 489bece948..7534c7fe57 100644 --- a/src/template/solaris +++ b/src/template/solaris @@ -9,8 +9,7 @@ case $host in i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;; esac -THREAD_SUPPORT=yes -NEED_REENTRANT_FUNCS=yes # 5.6 2003-09-13 +# tools/thread/thread_test must be run if test "$GCC" = yes then THREAD_LIBS="-pthread" else THREAD_CPPFLAGS="-mt" diff --git a/src/template/unixware b/src/template/unixware index dc469873cc..c1af94b5b4 100644 --- a/src/template/unixware +++ b/src/template/unixware @@ -24,6 +24,5 @@ __EOF__ THREAD_CPPFLAGS="-K pthread" fi -THREAD_SUPPORT=yes -NEED_REENTRANT_FUNCS=no # verified 7.1.3 2003-09-03 +# tools/thread/thread_test must be run THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_REENTRANT" |
