aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/template/solaris7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/template/solaris b/src/template/solaris
index 6dd807859ac..489bece9489 100644
--- a/src/template/solaris
+++ b/src/template/solaris
@@ -11,8 +11,9 @@ esac
THREAD_SUPPORT=yes
NEED_REENTRANT_FUNCS=yes # 5.6 2003-09-13
-if test "$GCC" != yes
-then THREAD_CPPFLAGS="-mt"
+if test "$GCC" = yes
+then THREAD_LIBS="-pthread"
+else THREAD_CPPFLAGS="-mt"
+ THREAD_LIBS="-lpthread"
fi
-THREAD_LIBS="-pthread"