Unlink static libraries before rebuilding them.

Noah Misch <noah@leadboat.com>

Commit: 585f16dc80337a2ee7b0e823c7ff42a9e10d1d88
Author: Noah Misch <noah@leadboat.com>
Date: 2015-03-01T18:06:39Z
Releases: 9.3.7
Unlink static libraries before rebuilding them.

When the library already exists in the build directory, "ar" preserves
members not named on its command line.  This mattered when, for example,
a "configure" rerun dropped a file from $(LIBOBJS).  libpgport carried
the obsolete member until "make clean".  Back-patch to 9.0 (all
supported versions).

Files

PathChange+/−
src/common/Makefile modified +2 −0
src/Makefile.shlib modified +3 −0
src/port/Makefile modified +2 −0