Solaris thread patch - Mailing list pgsql-ports

From Bruce Momjian
Subject Solaris thread patch
Date
Msg-id 200312302312.hBUNCZc27946@candle.pha.pa.us
Whole thread Raw
List pgsql-ports
I have confirmed that Solaris needs the "-mt" link flag when building
threaded apps using non-gcc compilers, so I am adding it to the template
file for Solaris.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
Index: src/template/solaris
===================================================================
RCS file: /cvsroot/pgsql-server/src/template/solaris,v
retrieving revision 1.9
diff -c -c -r1.9 solaris
*** src/template/solaris    23 Dec 2003 18:40:53 -0000    1.9
--- src/template/solaris    30 Dec 2003 22:31:30 -0000
***************
*** 12,14 ****
--- 12,18 ----
  THREAD_SUPPORT=yes
  NEED_REENTRANT_FUNCS=yes    # 5.6 2003-09-13
  THREAD_LIBS="-pthread"
+ if test "$GCC" != yes
+ then     THREAD_LIBS="-mt $THREAD_LIBS"
+ fi
+

pgsql-ports by date:

Previous
From: Marek Lewczuk
Date:
Subject: plPHP on Cygwin
Next
From: Marek Lewczuk
Date:
Subject: Re: [BUGS] PostgreSQL 7.4 on Windows XP?