Link $(WIN32RES) into single-file modules only when PGFILEDESC is set.

Noah Misch <noah@leadboat.com>

Commit: c26170668c82eaaf28b6efbf76c5d1c206c27121
Author: Noah Misch <noah@leadboat.com>
Date: 2015-08-06T00:43:07Z
Releases: 9.6.0
Link $(WIN32RES) into single-file modules only when PGFILEDESC is set.

Commit 0ffc201a51395ca71fe429ef86c872850a5850ee included this object
unconditionally.  Being unprepared for that, most external, single-file
modules failed to build.  This better aligns the GNU make build system
with the heuristic in the MSVC build's Project::AddDirResourceFile().
In-tree, installed modules set PGFILEDESC, so they will see no change.
Also, under PGXS, omit the nonfunctioning rule to build win32ver.rc.
Back-patch to 9.5, where the aforementioned commit first appeared.

Files

PathChange+/−
src/makefiles/Makefile.win32 modified +7 −1
src/makefiles/pgxs.mk modified +1 −1