Re: libpq_r

From: Lee Kindness <lkindness(at)csl(dot)co(dot)uk>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Lee Kindness <lkindness(at)csl(dot)co(dot)uk>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: libpq_r
Date: 2003-07-24 15:29:58
Message-ID: 16159.64374.385539.832458@kelvin.csl.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian writes:
> Peter Eisentraut wrote:
> > Bruce Momjian writes:
> > > THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
> > Those flags are bogus. You don't need any flags under Linux.
> Is that true for all versions of Linux? Don't we need the first one so
> we compile cleanly.

Yeah, you want to define _REENTRANT...

> Also, the remaining to linux settings:
> THREAD_LIBS="-lpthread"
> NEED_REENTRANT_FUNC_NAMES=yes
> I assume -lpthread does have an effect on the library, or does it?

You DO NOT want -lpthread for libpq, but you do want it for ecpg.

L.

In response to

  • Re: libpq_r at 2003-07-24 15:18:25 from Bruce Momjian

Browse pgsql-hackers by date

  From Date Subject
Next Message Larry Rosenman 2003-07-24 15:30:10 Re: libpq_r
Previous Message ohp 2003-07-24 15:23:51 Re: Feature request -- Log Database Name