Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd587298

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 causedconfusion in the past when programs like psql have failed to startbecause they can't find the DLL. If it's in the same directory as it nowwill be they will find it.Backpatch to all live branches.
1 parentd0ee937 commitd587298

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

125128
installcheck:
126129
$(MAKE) -Ctest$@
127130

128131
installdirs: installdirs-lib
129132
$(MKDIR_P)'$(DESTDIR)$(includedir)''$(DESTDIR)$(includedir_internal)''$(DESTDIR)$(datadir)'
133+
ifneq (,$findstring($(PORTNAME), win32 cygwin))
134+
$(MKDIR_P) '$(DESTDIR)$(bindir)'
135+
endif
130136

131137
uninstall: uninstall-lib
132138
rm -f'$(DESTDIR)$(includedir)/libpq-fe.h'
133139
rm -f'$(DESTDIR)$(includedir)/libpq-events.h'
134140
rm -f'$(DESTDIR)$(includedir_internal)/libpq-int.h'
135141
rm -f'$(DESTDIR)$(includedir_internal)/pqexpbuffer.h'
136142
rm -f'$(DESTDIR)$(datadir)/pg_service.conf.sample'
143+
ifneq (,$findstring($(PORTNAME), win32 cygwin))
144+
rm -f '$(DESTDIR)$(bindir)/$(shlib)'
145+
endif
137146

138147
cleandistclean: clean-lib
139148
$(MAKE) -Ctest$@

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp