diff options
| author | Bruce Momjian | 2003-09-13 14:49:51 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2003-09-13 14:49:51 +0000 |
| commit | b041d3e3a17331f9fc76509a577c6ed63067aded (patch) | |
| tree | 21574080f45d78c1de8a8bb128f8c35474cf18de /src/template | |
| parent | 509a9cd3f922c38c19d35e81bb1427d663ba4aba (diff) | |
Attempt threading in this order:
* use non-*_r function names if they are all thread-safe
* (NEED_REENTRANT_FUNCS=no)
* use *_r functions if they exist (configure test)
* do our own locking and copying of non-threadsafe functions
New to this patch is the last option.
Diffstat (limited to 'src/template')
| -rw-r--r-- | src/template/bsdi | 2 | ||||
| -rw-r--r-- | src/template/freebsd | 4 | ||||
| -rw-r--r-- | src/template/linux | 2 | ||||
| -rw-r--r-- | src/template/netbsd | 2 | ||||
| -rw-r--r-- | src/template/osf | 2 | ||||
| -rw-r--r-- | src/template/solaris | 5 | ||||
| -rw-r--r-- | src/template/unixware | 2 |
7 files changed, 12 insertions, 7 deletions
diff --git a/src/template/bsdi b/src/template/bsdi index ba2d27247e4..d6b16a2417d 100644 --- a/src/template/bsdi +++ b/src/template/bsdi @@ -11,4 +11,4 @@ case $host_os in esac SUPPORTS_THREADS=yes -NEED_REENTRANT_FUNC_NAMES=no # verified 4.3 2003-09-03 +NEED_REENTRANT_FUNCS=no # verified 4.3 2003-09-03 diff --git a/src/template/freebsd b/src/template/freebsd index 9e5cc6d0128..71e50140660 100644 --- a/src/template/freebsd +++ b/src/template/freebsd @@ -4,8 +4,8 @@ case $host_cpu in alpha*) CFLAGS="$CFLAGS -O" ;; esac -SUPPORTS_THREADS=no # 4.8, 5.1 2003-09-12 -NEED_REENTRANT_FUNC_NAMES=no +SUPPORTS_THREADS=yes +NEED_REENTRANT_FUNCS=yes # 4.8, 5.1 2003-09-12 case $host_os in freebsd2*|freebsd3*|freebsd4*) diff --git a/src/template/linux b/src/template/linux index db13803710e..0aab11631f5 100644 --- a/src/template/linux +++ b/src/template/linux @@ -1,7 +1,7 @@ CFLAGS=-O2 SUPPORTS_THREADS=yes -NEED_REENTRANT_FUNC_NAMES=yes # verified glibc 2.1 2003-09-03 +NEED_REENTRANT_FUNCS=yes # verified glibc 2.1 2003-09-03 THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS" THREAD_LIBS="-lpthread" diff --git a/src/template/netbsd b/src/template/netbsd index 9a3869dfe77..72e1d624c4a 100644 --- a/src/template/netbsd +++ b/src/template/netbsd @@ -1,4 +1,4 @@ CFLAGS='-O2 -pipe' SUPPORTS_THREADS=yes -NEED_REENTRANT_FUNC_NAMES=no +NEED_REENTRANT_FUNCS=no diff --git a/src/template/osf b/src/template/osf index a930bf4e08e..7305395a0b2 100644 --- a/src/template/osf +++ b/src/template/osf @@ -6,5 +6,5 @@ else fi SUPPORTS_THREADS=yes -NEED_REENTRANT_FUNC_NAMES=no +NEED_REENTRANT_FUNCS=no # 4.0 2003-09-13 THREAD_CFLAGS="-pthread" diff --git a/src/template/solaris b/src/template/solaris index 33d40cfb87c..d839f935ccb 100644 --- a/src/template/solaris +++ b/src/template/solaris @@ -4,3 +4,8 @@ else CC="$CC -Xa" # relaxed ISO C mode CFLAGS=-v # -v is like gcc -Wall fi + +SUPPORTS_THREADS=yes +NEED_REENTRANT_FUNCS=yes # 5.6 2003-09-13 +THREAD_CFLAGS="-pthread" + diff --git a/src/template/unixware b/src/template/unixware index 9cfde833c92..21d4314d87d 100644 --- a/src/template/unixware +++ b/src/template/unixware @@ -10,5 +10,5 @@ else fi SUPPORTS_THREADS=yes -NEED_REENTRANT_FUNC_NAMES=no # verified 7.1.3 2003-09-03 +NEED_REENTRANT_FUNCS=no # verified 7.1.3 2003-09-03 THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT" |
