]> granicus.if.org Git - postgresql/blobdiff - src/template/freebsd
Attempt threading in this order:
[postgresql] / src / template / freebsd
index 9e92126332b6cc5ab88a94353a6b148f6d7b38b3..71e501406607e0a1befd1927bc2fdc15a54c53bd 100644 (file)
@@ -1,7 +1,17 @@
 CFLAGS='-pipe'
 
 case $host_cpu in
-  alpha*)   CFLAGS="$CFLAGS -O";;
-  i386*)    CFLAGS="$CFLAGS -O2";;
+  alpha*)   CFLAGS="$CFLAGS -O" ;;
 esac
 
+SUPPORTS_THREADS=yes
+NEED_REENTRANT_FUNCS=yes       # 4.8, 5.1  2003-09-12
+
+case $host_os in
+               freebsd2*|freebsd3*|freebsd4*)
+                       THREAD_CFLAGS="-pthread"
+                       ;;
+               *)
+                       THREAD_LIBS="-lc_r"
+                       ;;
+esac