Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] UnixWare/CVS Tip/initdb.c needs to use

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Larry Rosenman <ler(at)lerctr(dot)org>, pgsql-patches(at)postgresql(dot)org
Subject: Re: [HACKERS] UnixWare/CVS Tip/initdb.c needs to use
Date: 2004-03-19 16:46:20
Message-ID: 200403191646.i2JGkKO02792@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Tom Lane wrote:
> Larry Rosenman <ler(at)lerctr(dot)org> writes:
> > In other words, the entire application either is or is not linked with
> > threads; it's not a property of an individual library.
> 
> > SO, IF we are using the threads flags, we need to use them on ALL=20
> > libpq-using programs, ours or the users.
> 
> Yeek.  This is an example of the sort of thing that makes people want to
> build two versions of every library.
> 
> I'm not excited about doing that (at least not unless it pops up on more
> platforms).  It seems that what we have to do for Unixware is add
> -Kpthread to LDFLAGS; is that correct?

I am attaching a new bin/Makefile that should fix it.  The new code is:
	
	# this platform needs the thread compiler flag for all binaries
	# to override libc
	ifeq ($(PORTNAME), unixware)
	CPPFLAGS += "$THREAD_CPPFLAGS"
	endif

Larry, does this fix it?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2004-03-19 16:53:34
Subject: Re: [HACKERS] UnixWare/CVS Tip/initdb.c needs to use
Previous:From: Josh BerkusDate: 2004-03-19 16:41:45
Subject: Re: Authentication drop-down?

pgsql-patches by date

Next:From: Bruce MomjianDate: 2004-03-19 16:53:34
Subject: Re: [HACKERS] UnixWare/CVS Tip/initdb.c needs to use
Previous:From: Tom LaneDate: 2004-03-19 16:39:28
Subject: Re: [HACKERS] UnixWare/CVS Tip/initdb.c needs to use

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group