Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g7O8v-0003V4-Lo for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Oct 2018 17:07:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g7O8u-0000XB-8s for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Oct 2018 17:07:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g7O8t-0000X4-Ud for pgsql-hackers@lists.postgresql.org; Tue, 02 Oct 2018 17:07:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g7O8r-0000Lz-0p for pgsql-hackers@lists.postgresql.org; Tue, 02 Oct 2018 17:07:26 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w92H7LK9027792; Tue, 2 Oct 2018 13:07:21 -0400 From: Tom Lane To: Andrew Dunstan cc: Marco Atzeri , pgsql-hackers@lists.postgresql.org Subject: Re: Cygwin linking rules In-reply-to: References: <1056.1538235347@sss.pgh.pa.us> <86419508-9d36-36a9-93ff-2a051af7d2e4@2ndQuadrant.com> <257c24fc-effb-871d-4529-e3ff2ea0d436@gmail.com> Comments: In-reply-to Andrew Dunstan message dated "Sun, 30 Sep 2018 10:13:19 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27790.1538500041.1@sss.pgh.pa.us> Date: Tue, 02 Oct 2018 13:07:21 -0400 Message-ID: <27791.1538500041@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Dunstan writes: > On 09/29/2018 02:13 PM, Marco Atzeri wrote: >> [ proposed patch ] > 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'm pretty much -1 on adding SO_MAJORVERSION to the library names. It seems like it will cause churn to library users without really accomplishing much, because when was the last time we changed the SO_MAJORVERSION of anything? I'd suggest that if we ever do change libpq's SO_MAJORVERSION, that would be the time to append the suffix (so we'd go from libpq.dll to libpq-6.dll). For now, let's not fix what isn't broken. However, the .a linking definitely is broken, and if this way of building fixes it, that's great. I do not have the ability to test it, but we can throw it into the buildfarm to see what happens. > 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. I think it's too late for 11; we're too close to RC1, and besides the problem this is fixing doesn't seem to manifest before my recent port/common library changes. (If that's not so, maybe it qualifies as a bug fix for back branches; but it seems rather high risk.) regards, tom lane