This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Running ranlib after installation - okay or not?
ian@airs.com (Ian Lance Taylor) wrote on 01.09.05 in <m3wtm0ircw.fsf@gossamer.airs.com>:
> kaih@khms.westfalen.de (Kai Henningsen) writes:
>
> > pinskia@physics.uc.edu (Andrew Pinski) wrote on 31.08.05 in
> > <0b7e9f70d997eb3033872da5db37f4c8@physics.uc.edu>:
> >
> > > If you consider Darwin "modern", then that statement is not correct
> > > as moving/copying an archive on darwin, requires ranlib to be run.
> >
> > Is there a point to this behaviour? It sounds as if someone confused an
> > archive with a nethack scorefile ...
>
> a.out archives used to work this way too, e.g. on SunOS 4. The idea
> was that people would often use ar without updating the symbol table.
> Thus the symbol table has a timestamp. The linker checks that the
> timestamp of the symbol table is not older than the file modification
> time of the archive.
But then all you have to do is copy the timestamp, too. This sounded more
like saving inode numbers and stuff ...
I am, of course, accustomed to a cp that can copy timestamps. And I see
that my install also has a -p option ...
MfG Kai