From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Marco Atzeri <marco.atzeri@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Subject: Re: Cygwin linking rules
Date: Sun, 30 Sep 2018 10:13:19 -0400
Message-ID: <fda91d8a-93ae-d7a5-a555-4a88d5783f36@2ndQuadrant.com> (raw)
In-Reply-To: <257c24fc-effb-871d-4529-e3ff2ea0d436@gmail.com>
References: <1056.1538235347@sss.pgh.pa.us>
<86419508-9d36-36a9-93ff-2a051af7d2e4@2ndQuadrant.com>
<f82cc25e-3404-33b1-3a7b-93e5130e188e@2ndQuadrant.com>
<257c24fc-effb-871d-4529-e3ff2ea0d436@gmail.com>
On 09/29/2018 02:13 PM, Marco Atzeri wrote:
>
> building from git and using the attached patch that is used for all
> cygwin packages on latest cygwin
>
> $ uname -svrm
> CYGWIN_NT-10.0 2.11.1(0.329/5/3) 2018-09-05 10:24 x86_64
>
> I do not see the problem
>
> ============== creating database "contrib_regression" ==============
> CREATE DATABASE
> ALTER DATABASE
> ============== running regression test queries ==============
> test paths ... ok
> test dblink ... ok
> ============== shutting down postmaster ==============
>
>
> $ objdump -x usr/lib/postgresql/dblink.dll |grep "DLL Name:"
> DLL Name: postgres.exe
> DLL Name: cygpq-5.dll
> DLL Name: cygwin1.dll
> DLL Name: KERNEL32.dll
>
Yes. So there are a couple of things here. First, the dll has
SO_MAJORVERSION in the name. And second it stops building any static
libraries and instead builds windows import libraries with names like
lippq.a.
I've tested this on both HEAD and REL9_3_STABLE and it works fine.
I think we should apply this to HEAD. If it's not too late it would
probably be a good thing for release 11 - would need a release note.
cheers
andrew
--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: andrew.dunstan@2ndquadrant.com, marco.atzeri@gmail.com, pgsql-hackers@lists.postgresql.org
Subject: Re: Cygwin linking rules
In-Reply-To: <fda91d8a-93ae-d7a5-a555-4a88d5783f36@2ndQuadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox