Re: [HACKERS] threads stuff/UnixWare - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: [HACKERS] threads stuff/UnixWare
Date
Msg-id 200405132306.i4DN6FI07190@candle.pha.pa.us
Whole thread Raw
Responses Re: [HACKERS] threads stuff/UnixWare
Re: [HACKERS] threads stuff/UnixWare
List pgsql-patches
Larry Rosenman wrote:
> > Really?  You are configuring with --enable-thread-safety?  I just
> > updated your template in CVS, and it is attached.  However, any old CVS
> > should work fine.
> Nope, initdb is where we still die:

Patch applied:

Force thread flags for all Unixware builds if threading is requested.

This is required because once you link with a library that uses threads,
all references to that library have to use thread flags.

--
  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/Makefile.global.in
===================================================================
RCS file: /cvsroot/pgsql-server/src/Makefile.global.in,v
retrieving revision 1.182
diff -c -c -r1.182 Makefile.global.in
*** src/Makefile.global.in    11 May 2004 21:57:14 -0000    1.182
--- src/Makefile.global.in    13 May 2004 23:03:12 -0000
***************
*** 177,182 ****
--- 177,188 ----
    CFLAGS += -Wall -Wmissing-prototypes -Wmissing-declarations
  endif

+ # Unixware needs threads for everything that uses libpq
+ ifeq ($(PORTNAME),unixware)
+   CFLAGS += "$PTHREAD_CFLAGS"
+ endif
+
+
  # Kind-of compilers

  YACC = @YACC@

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: mingw configure failure detection
Next
From: Larry Rosenman
Date:
Subject: Re: [HACKERS] threads stuff/UnixWare