X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7E509D1DB5B; Tue, 9 Mar 2004 04:55:25 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 13041-06; Tue, 9 Mar 2004 00:55:22 -0400 (AST) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 33AB4D1DB0C; Tue, 9 Mar 2004 00:55:20 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i294tHL01900; Mon, 8 Mar 2004 23:55:17 -0500 (EST) From: Bruce Momjian Message-Id: <200403090455.i294tHL01900@candle.pha.pa.us> Subject: Re: PostgreSQL: libpq, win32 build In-Reply-To: <41DBF86E9B2D40458004C7C631CB6E510836CA@sbs1.firepro.co.za> To: David Turner Date: Mon, 8 Mar 2004 23:55:17 -0500 (EST) Cc: PostgreSQL-patches , PostgreSQL-interfaces X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/10 X-Sequence-Number: 4789 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@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