rm static libraries before rebuilding - Mailing list pgsql-hackers

From Noah Misch
Subject rm static libraries before rebuilding
Date
Msg-id 20150301062745.GB685188@tornado.leadboat.com
Whole thread Raw
Responses Re: rm static libraries before rebuilding  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: rm static libraries before rebuilding  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
We build static libraries with "ar crs" or "ar cr".  If the static library
already exists in the build directory, those commands will add new members and
replace existing members.  They will not remove members present in the
existing library but not named on the "ar" command line.  This matters when,
for example, you rerun ./configure in a way that removes a file from
$(LIBOBJS).  libpgport carries the obsolete member until "make clean".  Let's
fix that by issuing "rm -f" before running $(AR).  I would back-patch this.

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: plpgsql versus domains
Next
From: Tom Lane
Date:
Subject: Re: rm static libraries before rebuilding