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

Commit6e96d4d

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 parentebe3344 commit6e96d4d

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,19 +120,28 @@ 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
installcheck:
125128
$(MAKE) -Ctest$@
126129

127130
installdirs: installdirs-lib
128131
$(MKDIR_P)'$(DESTDIR)$(includedir)''$(DESTDIR)$(includedir_internal)'
132+
ifneq (,$findstring($(PORTNAME), win32 cygwin))
133+
$(MKDIR_P) '$(DESTDIR)$(bindir)'
134+
endif
129135

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp