Re: Problem linking libecpg.5.3.dylib on OS X - Mailing list pgsql-hackers

From Michael Meskes
Subject Re: Problem linking libecpg.5.3.dylib on OS X
Date
Msg-id 20070112095428.GB28403@feivel.credativ.de
Whole thread Raw
In response to Re: Problem linking libecpg.5.3.dylib on OS X  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thu, Jan 11, 2007 at 10:47:32PM -0500, Tom Lane wrote:
> Actually I'd suggest that using an exported variable at all is probably
> bad style.  I'd suggest that libecpg export a set() function instead:
> ...

I think I found an easier solution. With my latest commit ecpg uses a
#define to set a different debug level and the lib sets the regression
flags according to that level. This still needs a global variable in the
library but it is not accessed from the outside.

Hopefully this works on all archs.

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!


pgsql-hackers by date:

Previous
From: "Zeugswetter Andreas ADI SD"
Date:
Subject: Re: share info between backends
Next
From: Michael Meskes
Date:
Subject: Re: [COMMITTERS] pgsql: Stamp major release 8.3.0,