Add "-mt" link flag for Solaris non-gcc compiles when using threads ---
authorBruce Momjian
Tue, 30 Dec 2003 23:13:51 +0000 (23:13 +0000)
committerBruce Momjian
Tue, 30 Dec 2003 23:13:51 +0000 (23:13 +0000)
required.

src/template/solaris

index 7338878e835f4e592aed4f246733dd202f7c6fb3..fbb574fe88f65e5f025ae6e125d85e13eb03bb56 100644 (file)
@@ -12,3 +12,7 @@ esac
 THREAD_SUPPORT=yes
 NEED_REENTRANT_FUNCS=yes   # 5.6 2003-09-13
 THREAD_LIBS="-pthread"
+if test "$GCC" != yes 
+then   THREAD_LIBS="-mt $THREAD_LIBS"
+fi
+