Install libpq DLL with $(INSTALL_SHLIB).
authorNoah Misch
Tue, 19 Aug 2014 03:00:38 +0000 (23:00 -0400)
committerNoah Misch
Tue, 19 Aug 2014 03:01:04 +0000 (23:01 -0400)
Programs need execute permission on a DLL file to load it.  MSYS
"install" ignores the mode argument, and our Cygwin build statically
links libpq into programs.  That explains the lack of buildfarm trouble.
Back-patch to 9.0 (all supported versions).

src/interfaces/libpq/Makefile

index a3030ca26a0914e79c1d44c2b1e4f817a10295df..fdb30302aecfd680a488239a33b2e53ba24d25c6 100644 (file)
@@ -122,7 +122,7 @@ install: all installdirs install-lib
    $(INSTALL_DATA) $(srcdir)/pqexpbuffer.h '$(DESTDIR)$(includedir_internal)'
    $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample '$(DESTDIR)$(datadir)/pg_service.conf.sample'
 ifneq (,$(findstring $(PORTNAME), win32 cygwin))
-   $(INSTALL_DATA) $(shlib) '$(DESTDIR)$(bindir)/$(shlib)'
+   $(INSTALL_SHLIB) $(shlib) '$(DESTDIR)$(bindir)/$(shlib)'
 endif
 
 installcheck: