Skip to content

Commit dfb4a1a

Browse files
committed
Copy the libpq DLL to the bin directory on Mingw and Cygwin.
This has long been done by the MSVC build system, and has caused confusion in the past when programs like psql have failed to start because they can't find the DLL. If it's in the same directory as it now will be they will find it. Backpatch to all live branches.
1 parent 8e6bfc9 commit dfb4a1a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/interfaces/libpq/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,25 @@ install: all installdirs install-lib
120120
$(INSTALL_DATA) $(srcdir)/libpq-int.h '$(DESTDIR)$(includedir_internal)'
121121
$(INSTALL_DATA) $(srcdir)/pqexpbuffer.h '$(DESTDIR)$(includedir_internal)'
122122
$(INSTALL_DATA) $(srcdir)/pg_service.conf.sample '$(DESTDIR)$(datadir)/pg_service.conf.sample'
123+
ifneq (,$findstring($(PORTNAME), win32 cygwin))
124+
$(INSTALL_DATA) $(shlib) '$(DESTDIR)$(bindir)/$(shlib)'
125+
endif
123126

124127
installdirs: installdirs-lib
125128
$(MKDIR_P) '$(DESTDIR)$(includedir)' '$(DESTDIR)$(includedir_internal)'
129+
ifneq (,$findstring($(PORTNAME), win32 cygwin))
130+
$(MKDIR_P) '$(DESTDIR)$(bindir)'
131+
endif
126132

127133
uninstall: uninstall-lib
128134
rm -f '$(DESTDIR)$(includedir)/libpq-fe.h'
129135
rm -f '$(DESTDIR)$(includedir)/libpq-events.h'
130136
rm -f '$(DESTDIR)$(includedir_internal)/libpq-int.h'
131137
rm -f '$(DESTDIR)$(includedir_internal)/pqexpbuffer.h'
132138
rm -f '$(DESTDIR)$(datadir)/pg_service.conf.sample'
139+
ifneq (,$findstring($(PORTNAME), win32 cygwin))
140+
rm -f '$(DESTDIR)$(bindir)/$(shlib)'
141+
endif
133142

134143
clean distclean: clean-lib
135144
rm -f $(OBJS) pthread.h libpq.rc

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy