Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id BDD101337B55 for ; Tue, 12 Oct 2010 15:25:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 80382-04 for ; Tue, 12 Oct 2010 18:25:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 44AF21337B89 for ; Tue, 12 Oct 2010 15:25:33 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id A6E05348017; Tue, 12 Oct 2010 11:25:26 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zll-NzKgVCS6; Tue, 12 Oct 2010 11:25:24 -0700 (PDT) Received: from perhan.alvh.no-ip.org (200-85-213-6.bk4-dsl.surnet.cl [200.85.213.6]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 16C45348016; Tue, 12 Oct 2010 11:25:24 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 65B3D6E63A; Tue, 12 Oct 2010 15:25:20 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: pgsql-bugs Subject: Re: BUG #5707: Cross compilation for windows is broken From: Alvaro Herrera To: Richard Evans In-reply-to: <201010121548.o9CFmjPa038535@wwwmaster.postgresql.org> References: <201010121548.o9CFmjPa038535@wwwmaster.postgresql.org> Date: Tue, 12 Oct 2010 15:25:20 -0300 Message-Id: <1286907735-sup-6339@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.324 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_NJABL_PROXY=2.224 X-Spam-Level: X-Archive-Number: 201010/111 X-Sequence-Number: 28401 Excerpts from Richard Evans's message of mar oct 12 12:48:45 -0300 2010: > When cross compiling for Windows using a separate build area, libpq.dll does > not build because the .def file cannot be found. > > This appears to be caused by these lines in Makefile.shlib: Hmm, apparently this was made to work here: http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=26af72b4 and subsequently broken later: http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=234c7ce9 I think the real fix is to make the DEF files be generated in the builddir, to complete the intention of the latter patch. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support