From 88a987fcfd60a3b861068add5d26f67432a4d20f Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 8 Jan 2004 04:21:20 +0000 Subject: [PATCH] Update Solaris thread setting for non-gcc compilers. --- src/template/solaris | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/template/solaris b/src/template/solaris index d32ab6afb9..489bece948 100644 --- a/src/template/solaris +++ b/src/template/solaris @@ -3,9 +3,17 @@ if test "$GCC" != yes ; then CFLAGS="-O -v" # -v is like gcc -Wall fi +# Pick right test-and-set (TAS) code. +case $host in + sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;; + i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;; +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" + -- 2.50.0