Re: PostgreSQL: libpq, win32 build

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: David Turner <David(at)firepro(dot)co(dot)za>
Cc: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>, PostgreSQL-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: PostgreSQL: libpq, win32 build
Date: 2004-03-09 04:55:17
Message-ID: 200403090455.i294tHL01900@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces pgsql-patches


This builds a debug version of the DLL's along with the non-debug
version. Patch applied. Thanks.

---------------------------------------------------------------------------

David Turner wrote:
> Hi
>
> > > release build uses the cl flags "/MD /D NDEBUG". Usually the debug
> > > build has a "D" suffix on the file name, so for example:
> > >
> > > libpqd.dll libpq, debug build
> > > libpqd.lib libpq, debug build, import library
> > > libpq.dll libpq, release build
> > > libpq.lib libpq, release build, import library
> > >
> >
> > What do we do now? Build just one file, a lib?
>
>
> Currently, src/interfaces/libpq/win32.mak builds a statically-linked
> library "libpq.lib", a debug dll "libpq.dll", import library for the
> debug dll "libpqdll.lib", a release dll "libpq.dll", import library for
> the release dll "libpqdll.lib". To avoid naming clashes, I would make
> the debug dll and import libraries "libpqd.dll" and "libpqddll.lib".
>
> Attached is src/interfaces/libpq/win32.mak, modified as I described. I
> also had to make a copy of libpqdll.def to change the LIBRARY directive.
>
>
> Regards
> David Turner

Content-Description: libpqddll.def

[ Attachment, skipping... ]

Content-Description: win32.mak

[ Attachment, skipping... ]

--
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

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jan Klostermann 2004-03-16 09:28:58 DataType OID for PQexecParams-call in libpq
Previous Message Craig Gibson 2004-03-08 13:17:35 Re: libpgeasy on AIX

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2004-03-09 05:05:18 Re: "ALSO" keyword to "CREATE RULE" patch
Previous Message Bruce Momjian 2004-03-09 04:49:03 Re: canonicalize_path: initdb.c -> port/path.c