1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-31 17:02:12 +03:00

Move thread os defines into template files.

This commit is contained in:
Bruce Momjian
2003-06-14 19:21:42 +00:00
parent 467839df26
commit ffa3bfbc30
6 changed files with 43 additions and 51 deletions

View File

@@ -9,3 +9,7 @@ case $host_os in
CC=gcc2
;;
esac
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNC_NAMES=no

View File

@@ -3,3 +3,15 @@ CFLAGS='-pipe'
case $host_cpu in
alpha*) CFLAGS="$CFLAGS -O" ;;
esac
SUPPORTS_THREADS=yes
case $host_os in
freebsd2*|freebsd3*|freebsd4*)
THREAD_CFLAGS="-pthread"
NEED_REENTRANT_FUNC_NAMES=yes
;;
*)
THREAD_LIBS="-lc_r"
NEED_REENTRANT_FUNC_NAMES=yes
;;
esac

View File

@@ -1 +1,7 @@
CFLAGS=-O2
SUPPORTS_THREADS=yes
THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
THREAD_LIBS="-lpthread"
NEED_REENTRANT_FUNC_NAMES=yes

View File

@@ -1 +1,5 @@
CFLAGS='-O2 -pipe'
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNC_NAMES=no