pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: cedric@2ndquadrant.com, pgsql-hackers@postgresql.org, Josh Berkus <josh@agliodbs.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Craig Ringer <craig@2ndquadrant.com>
Subject: Re: Bugfix and new feature for PGXS
Date: Thu, 10 Oct 2013 21:35:07 -0400
Message-ID: <1381455307.5264.14.camel@vanquo.pezone.net> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

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



view thread (68+ messages)  latest in thread

Message-ID: <1381455307.5264.14.camel@vanquo.pezone.net>
Permalink:  ../1381455307.5264.14.camel@vanquo.pezone.net/
Also on:    postgresql.org/message-id/1381455307.5264.14.camel@vanquo.pezone.net

 · 

reply

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: peter_e@gmx.net, andrew@dunslane.net, josh@agliodbs.com, robertmhaas@gmail.com, craig@2ndquadrant.com
  Subject: Re: Bugfix and new feature for PGXS
  In-Reply-To: <1381455307.5264.14.camel@vanquo.pezone.net>

* 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