Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 1EBD49F9C4A for ; Mon, 17 Sep 2007 10:32:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 61582-01 for ; Mon, 17 Sep 2007 10:32:47 -0300 (ADT) X-Greylist: delayed 00:09:00.082182 by SQLgrey-1.7.5 Received: from tower.psoft.od.ua (psoft.user.matrix.farlep.net [217.146.242.85]) by postgresql.org (Postfix) with ESMTP id DEAFA9F9B7A for ; Mon, 17 Sep 2007 10:32:47 -0300 (ADT) Received: from [192.168.70.23] (robert.psoftod [192.168.70.23]) by tower.psoft.od.ua (8.13.6/8.13.6) with ESMTP id l8HDWff7067772 for ; Mon, 17 Sep 2007 16:32:44 +0300 (EEST) (envelope-from robert.ayrapetyan@comodo.com) Date: Mon, 17 Sep 2007 16:23:46 +0300 From: Robert Ayrapetyan X-Mailer: The Bat! (v3.95.6) Professional Reply-To: Robert Ayrapetyan Organization: Comodo Group X-Priority: 3 (Normal) Message-ID: <692511163.20070917162346@comodo.com> To: pgsql-interfaces@postgresql.org Subject: Problem with getting static libpq.a from PostgresSQL 8.2.4 sources using MinGW MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.90.1, clamav-milter version 0.90.1 on tower.psoft.od.ua X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.977 tagged_above=0 required=5 tests=AWL=0.976, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200709/2 X-Sequence-Number: 6624 Hello, Problem with getting static libpq.a from PostgresSQL 8.2.4 sources using MinGW. In documentation regarding Win32 (http://www.postgresql.org/docs/8.2/interactive/install-win32.html) there is remarked that after building we will have following binaries: interfaces\libpq\Release\libpq.dll The dynamically linkable frontend library interfaces\libpq\Release\libpqdll.lib Import library to link your programs to libpq.dll interfaces\libpq\Release\libpq.lib Static version of the frontend library And I really got them (libpq.lib - 323Kb, pibpq.dll - 104Kb, libpqdll.lib - 26,6Kb) There is nothing remarked about MinGW installation. But after building with MingW I have got libpq.dll (size 149Kb) and libpq.a (size 96Kb). Problem is that I can't link any app statically with libpq.a - libpq.dll always appears in dependencies. Question is: how to get REAL static libpq.a with mingw?