diff options
| author | Noah Misch | 2015-03-01 18:05:23 +0000 |
|---|---|---|
| committer | Noah Misch | 2015-03-01 18:06:33 +0000 |
| commit | 22dd465d34f55b5a5b1790a5b5582fef9558d84b (patch) | |
| tree | a13389929ea9f5f2a1959c7af668cfad400ebd96 /src/Makefile.shlib | |
| parent | fdacbf9e89267a3c3eb382b285bdb724ad5c6e44 (diff) | |
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).
Diffstat (limited to 'src/Makefile.shlib')
| -rw-r--r-- | src/Makefile.shlib | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib index 0ebb767e825..c6d184f6601 100644 --- a/src/Makefile.shlib +++ b/src/Makefile.shlib @@ -300,6 +300,7 @@ all-shared-lib: $(shlib) ifndef haslibarule $(stlib): $(OBJS) | $(SHLIB_PREREQS) + rm -f $@ $(LINK.static) $@ $^ $(RANLIB) $@ endif #haslibarule @@ -341,6 +342,7 @@ else # PORTNAME == aix # AIX case $(shlib) $(stlib): $(OBJS) | $(SHLIB_PREREQS) + rm -f $(stlib) $(LINK.static) $(stlib) $^ $(RANLIB) $(stlib) $(MKLDEXPORT) $(stlib) >$(exports_file) @@ -360,6 +362,7 @@ $(shlib): $(OBJS) | $(SHLIB_PREREQS) $(CC) $(CFLAGS) -shared -o $@ $(OBJS) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK) $(LIBS) $(LDAP_LIBS_BE) $(stlib): $(OBJS) | $(SHLIB_PREREQS) + rm -f $@ $(LINK.static) $@ $^ $(RANLIB) $@ |
