postgresql/src/template/freebsd
Bruce Momjian c6f0559371 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.
2004-02-11 21:44:06 +00:00

10 lines
258 B
Text

case $host_cpu in
alpha*) CFLAGS="-O";; # alpha has problems with -O2
esac
# tools/thread/thread_test must be run
THREAD_CPPFLAGS="-D_THREAD_SAFE"
case $host_os in
freebsd2*|freebsd3*|freebsd4*) THREAD_LIBS="-pthread";;
*) THREAD_LIBS="-lc_r";;
esac