mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
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).
This commit is contained in:
@@ -43,6 +43,7 @@ uninstall:
|
||||
rm -f '$(DESTDIR)$(libdir)/libpgcommon.a'
|
||||
|
||||
libpgcommon.a: $(OBJS_FRONTEND)
|
||||
rm -f $@
|
||||
$(AR) $(AROPT) $@ $^
|
||||
|
||||
#
|
||||
@@ -50,6 +51,7 @@ libpgcommon.a: $(OBJS_FRONTEND)
|
||||
#
|
||||
|
||||
libpgcommon_srv.a: $(OBJS_SRV)
|
||||
rm -f $@
|
||||
$(AR) $(AROPT) $@ $^
|
||||
|
||||
# Because this uses its own compilation rule, it doesn't use the
|
||||
|
Reference in New Issue
Block a user