Skip to content

Commit 8605bc7

Browse files
committed
Install libpq DLL with $(INSTALL_SHLIB).
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).
1 parent ee9569e commit 8605bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/libpq/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ install: all installdirs install-lib
126126
$(INSTALL_DATA) $(srcdir)/pqexpbuffer.h '$(DESTDIR)$(includedir_internal)'
127127
$(INSTALL_DATA) $(srcdir)/pg_service.conf.sample '$(DESTDIR)$(datadir)/pg_service.conf.sample'
128128
ifneq (,$(findstring $(PORTNAME), win32 cygwin))
129-
$(INSTALL_DATA) $(shlib) '$(DESTDIR)$(bindir)/$(shlib)'
129+
$(INSTALL_SHLIB) $(shlib) '$(DESTDIR)$(bindir)/$(shlib)'
130130
endif
131131

132132
installcheck:

0 commit comments

Comments
 (0)