From: Bruce Momjian Date: Thu, 8 Jan 2004 04:24:24 +0000 (+0000) Subject: Fix Solaris thread build settings for non-gcc compilers. X-Git-Tag: REL8_0_0BETA1~1383 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77f140008b58361f6ed4b7b70ad06c79703709f7;p=thirdparty%2Fpostgresql.git Fix Solaris thread build settings for non-gcc compilers. --- 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"