Skip to content

Commit 77f1400

Browse files
committed
Fix Solaris thread build settings for non-gcc compilers.
1 parent 4f913ef commit 77f1400

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/template/solaris

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ esac
1111

1212
THREAD_SUPPORT=yes
1313
NEED_REENTRANT_FUNCS=yes # 5.6 2003-09-13
14-
if test "$GCC" != yes
15-
then THREAD_CPPFLAGS="-mt"
14+
if test "$GCC" = yes
15+
then THREAD_LIBS="-pthread"
16+
else THREAD_CPPFLAGS="-mt"
17+
THREAD_LIBS="-lpthread"
1618
fi
17-
THREAD_LIBS="-pthread"
1819

0 commit comments

Comments
 (0)