MinGW: Link with shell32.dll instead of shfolder.dll.

Noah Misch <noah@leadboat.com>

Commit: 53566fc0940cf557416b13252df57350a4511ce4
Author: Noah Misch <noah@leadboat.com>
Date: 2014-10-22T02:55:43Z
Releases: 9.5.0
MinGW: Link with shell32.dll instead of shfolder.dll.

This improves consistency with the MSVC build.  On buildfarm member
narwhal, since commit 846e91e0223cf9f2821c3ad4dfffffbb929cb027,
shfolder.dll:SHGetFolderPath() crashes when dblink calls it by way of
pqGetHomeDirectory().  Back-patch to 9.4, where that commit first
appeared.  How it caused this regression remains a mystery.  This is a
partial revert of commit 889f03812916b146ae504c0fad5afdc7bf2e8a2a, which
adopted shfolder.dll for Windows NT 4.0 compatibility.  PostgreSQL 8.2
dropped support for that operating system.

Files

PathChange+/−
src/interfaces/ecpg/ecpglib/Makefile modified +0 −5
src/interfaces/libpq/Makefile modified +1 −1
src/interfaces/libpq/win32.mak modified +1 −1
src/Makefile.global.in modified +2 −3
src/port/path.c modified +5 −3