]> granicus.if.org Git - postgresql/commitdiff
Install libpq DLL with $(INSTALL_SHLIB).
authorNoah Misch <noah@leadboat.com>
Tue, 19 Aug 2014 03:00:38 +0000 (23:00 -0400)
committerNoah Misch <noah@leadboat.com>
Tue, 19 Aug 2014 03:00:38 +0000 (23:00 -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 a90cb892dec27a8509b5b9f400897f5f3a7da5d4..145e3e8776d22e639151446ca20f857c3aa79eb0 100644 (file)
@@ -126,7 +126,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: