Colin Percival wrote:
> >The hardest part has got to be the archive
> >files; I don't see how it could be avoided, without destroying
> >information, at least in the archive update case, and probably
> >in the archive recreation from object files case.
> 
>    Could someone point me towards information on what these values are used
> for?


man ar

See "-o" and "-u".  The "-u" opinion in particular is used to
updated the archive contents with only the new files.

Say you have:

LIB=foo
SRCS=q.c r.c s.c t.c u.c v.c

libfoo.a contains q.o, r.o, s.o, t.o, u.o, v.o

And you modify only s.c, and rebuild.

If your Makefile, etc., is set up properly, then only s.o will
be updated in the archive, because only the s.o file has a date
later than the date of the object file in the archive.

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to