mirror of
https://github.com/postgres/postgres.git
synced 2026-06-09 08:42:38 -04:00
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.
10 lines
258 B
Text
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
|