From 177ca670950c0dc765719b30e166ca67d4d0d000 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Thu, 8 Jan 2004 15:51:24 +0000
Subject: [PATCH] Update OSF thread flags for non-gcc compiles.

---
 src/template/osf | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/template/osf b/src/template/osf
index c2af2350e89..9d2d6b81c1c 100644
--- a/src/template/osf
+++ b/src/template/osf
@@ -5,4 +5,8 @@ fi
 
 THREAD_SUPPORT=yes
 NEED_REENTRANT_FUNCS=no		# 4.0 2003-09-13
-THREAD_LIBS="-pthread"
+if test "$GCC" = yes
+then	THREAD_LIBS="-pthread"
+else	THREAD_CPPFLAGS="-pthread"
+	THREAD_LIBS="-lpthread"
+fi
-- 
GitLab