Re: Bugfix and new feature for PGXS - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Bugfix and new feature for PGXS
Date
Msg-id 525410EC.9010002@dunslane.net
Whole thread Raw
In response to Re: Bugfix and new feature for PGXS  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Bugfix and new feature for PGXS  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
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.

cheers

andrew

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




pgsql-hackers by date:

Previous
From: KONDO Mitsumasa
Date:
Subject: Re: Compression of full-page-writes
Next
From: Kevin Grittner
Date:
Subject: Re: SSI freezing bug