Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VURdL-0004rG-5O for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Oct 2013 01:35:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VURdK-000456-GA for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Oct 2013 01:35:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VURdJ-00044h-5W for pgsql-hackers@postgresql.org; Fri, 11 Oct 2013 01:35:13 +0000 Received: from mout.gmx.net ([212.227.15.19]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VURdG-0007u4-Kw for pgsql-hackers@postgresql.org; Fri, 11 Oct 2013 01:35:12 +0000 Received: from [10.0.0.5] ([67.165.8.132]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M9s2y-1VfUG431se-00B4y6 for ; Fri, 11 Oct 2013 03:35:09 +0200 Message-ID: <1381455307.5264.14.camel@vanquo.pezone.net> Subject: Re: Bugfix and new feature for PGXS From: Peter Eisentraut To: Andrew Dunstan Cc: cedric@2ndquadrant.com, pgsql-hackers@postgresql.org, Josh Berkus , Robert Haas , Craig Ringer Date: Thu, 10 Oct 2013 21:35:07 -0400 In-Reply-To: <525410EC.9010002@dunslane.net> References: <201306181552.36673.cedric@2ndquadrant.com> <51DB171F.2090108@dunslane.net> <201307122350.23726.cedric@2ndquadrant.com> <1739933.FyLmpy7Q73@obelix> <5248B32E.1090001@dunslane.net> <1381193255.25702.4.camel@vanquo.pezone.net> <525410EC.9010002@dunslane.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.4-4+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:HFe+9uBC6gu4+JJRgcNvGaP0oassJLpFLSTPpHB/UKMbumYMbe1 eT/21jisSDU9Px/ENnvA+Peo5PdlsGgCLW6GfvM+NkcfAoIKwv5JNm5HzeoUi+5zWJXADEW PKs26I4elsxRLIkKHG9seQY6HB3Fdw13fUdipCobXJw5UqwMM+deV82TW/QvtItHjNUM9ZD u9UaSMVYTE9uaXuGQZMXg== X-Pg-Spam-Score: -0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Tue, 2013-10-08 at 10:04 -0400, Andrew Dunstan wrote: > On 10/07/2013 08:47 PM, Peter Eisentraut wrote: > > > > I suspect this line > > > > submake-libpq: $(libdir)/libpq.so ; > > > > will cause problems on platforms with a different extension (e.g. OS X). > > > suggested fix is below. Hmm, this would duplicate information about shared library naming in a place outside of Makefile.shlib. That doesn't look right. > diff --git a/src/Makefile.global.in b/src/Makefile.global.in > index bb732bb..b562378 100644 > --- a/src/Makefile.global.in > +++ b/src/Makefile.global.in > @@ -422,7 +422,11 @@ ifndef PGXS > submake-libpq: > $(MAKE) -C $(libpq_builddir) all > else > -submake-libpq: $(libdir)/libpq.so ; > +ifneq ($(PORTNAME),cygwin) > +submake-libpq: $(libdir)/libpq$(DLSUFFIX) ; > +else > +submake-libpq: $(libdir)/cygpq$(DLSUFFIX) ; > +endif > endif > > ifndef PGXS > > > -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers