Skip to content

Commit ebd4d9c

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 ae941b8 commit ebd4d9c

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
@@ -121,7 +121,7 @@ install: all installdirs install-lib
121121
$(INSTALL_DATA) $(srcdir)/pqexpbuffer.h '$(DESTDIR)$(includedir_internal)'
122122
$(INSTALL_DATA) $(srcdir)/pg_service.conf.sample '$(DESTDIR)$(datadir)/pg_service.conf.sample'
123123
ifneq (,$(findstring $(PORTNAME), win32 cygwin))
124-
$(INSTALL_DATA) $(shlib) '$(DESTDIR)$(bindir)/$(shlib)'
124+
$(INSTALL_SHLIB) $(shlib) '$(DESTDIR)$(bindir)/$(shlib)'
125125
endif
126126

127127
installcheck:

0 commit comments

Comments
 (0)