Re: About make manual 11.3 archive(member) syntax a(m) in prerequisite

"lijh8" via Users list for the GNU implementation of make <[email protected]> Thu, 2 Jan 2025 00:01:32 +0800
Newsgroups gmane.comp.gnu.make.general
Message-ID <[email protected]>
Update.


When ARFLAGS is without U, the datetime of the object archive(member) is reset to zero.
It renders the target being always outdated and rebuilds the target.


$ ar -tv libfoo.a&nbsp;
rw-r--r-- 0/0 &nbsp;78776 Jan &nbsp;1 08:00 1970 foo.o
$&nbsp;



When the ARFLAGS is with U, the timestamp is kept in archive(member) in the target.


$ ar -tv libfoo.a&nbsp;
rw-rw-r-- 1000/1000 &nbsp;78776 Jan &nbsp;1 23:49 2025 foo.o
$&nbsp;