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

Commitdfb4a1a

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 parent8e6bfc9 commitdfb4a1a

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
cleandistclean: clean-lib
135144
rm -f$(OBJS) pthread.h libpq.rc

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp