Mail Archives: djgpp-workers/1997/06/24/02:43:37
On Mon, 23 Jun 1997, DJ Delorie wrote:
> > Hey, maybe that's what I should do... install even 'libc.a' using
> > 'update', and then let make call itself until it libc.a stops to change,
> > and only then allow 'make install'. But I'm slowly loosing my footing
> > here, I think :-)
>
> COFF objects have timestamps in them. Beware when constructing loops
> like this, because a binary compare won't ever compare two objects the
> same, if they were built at different times.
These timestamps somehow go away when they are linked into an
executable, right? Because binary compare of .exe programs *does*
work for me.
Anyway, for .o and .a files you could use `dd' (from Textutils) with
its `skip=' and `seek=' options to skip parts of the files that have
time-dependent info and *then* compare with `cmp' or `update'. I am
assuming here that the parts with the timestamps have constant size.
- Raw text -