Skip to content

Commit e6841c4

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 823be6b commit e6841c4

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
@@ -113,7 +113,7 @@ install: all installdirs install-lib
113113
$(INSTALL_DATA) $(srcdir)/pqexpbuffer.h '$(DESTDIR)$(includedir_internal)'
114114
$(INSTALL_DATA) $(srcdir)/pg_service.conf.sample '$(DESTDIR)$(datadir)/pg_service.conf.sample'
115115
ifneq (,$(findstring $(PORTNAME), win32 cygwin))
116-
$(INSTALL_DATA) $(shlib) '$(DESTDIR)$(bindir)/$(shlib)'
116+
$(INSTALL_SHLIB) $(shlib) '$(DESTDIR)$(bindir)/$(shlib)'
117117
endif
118118

119119
installdirs: installdirs-lib

0 commit comments

Comments
 (0)