summaryrefslogtreecommitdiff
path: root/src/template
diff options
context:
space:
mode:
authorBruce Momjian2003-09-27 15:32:48 +0000
committerBruce Momjian2003-09-27 15:32:48 +0000
commit227dd9b42702b9c8062db9f7012058c051961b35 (patch)
tree11de404adf387ae44c647a724dc08e263f9d5278 /src/template
parentfae2adecf5a1281742b468f96656c88fb7dd9a63 (diff)
Rename thread compile flag. Move thread test program to tools/thread,
and improve tests.
Diffstat (limited to 'src/template')
-rw-r--r--src/template/bsdi2
-rw-r--r--src/template/freebsd3
-rw-r--r--src/template/linux2
-rw-r--r--src/template/osf2
-rw-r--r--src/template/solaris2
-rw-r--r--src/template/unixware6
6 files changed, 9 insertions, 8 deletions
diff --git a/src/template/bsdi b/src/template/bsdi
index d6b16a2417d..a5996a5402d 100644
--- a/src/template/bsdi
+++ b/src/template/bsdi
@@ -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
diff --git a/src/template/freebsd b/src/template/freebsd
index 71e50140660..0711a83212c 100644
--- a/src/template/freebsd
+++ b/src/template/freebsd
@@ -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"
diff --git a/src/template/linux b/src/template/linux
index 2c4f393e75a..a690b44968c 100644
--- a/src/template/linux
+++ b/src/template/linux
@@ -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"
diff --git a/src/template/osf b/src/template/osf
index 7305395a0b2..0856f5c8981 100644
--- a/src/template/osf
+++ b/src/template/osf
@@ -7,4 +7,4 @@ fi
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNCS=no # 4.0 2003-09-13
-THREAD_CFLAGS="-pthread"
+THREAD_LIBS="-pthread"
diff --git a/src/template/solaris b/src/template/solaris
index d839f935ccb..b333f006602 100644
--- a/src/template/solaris
+++ b/src/template/solaris
@@ -7,5 +7,5 @@ fi
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNCS=yes # 5.6 2003-09-13
-THREAD_CFLAGS="-pthread"
+THREAD_LIBS="-pthread"
diff --git a/src/template/unixware b/src/template/unixware
index 21d4314d87d..a228fa56ef8 100644
--- a/src/template/unixware
+++ b/src/template/unixware
@@ -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"