[comp.os.minix] ar

adamd@rhi.hi.is (Adam David) (06/07/91)

The version of ar that comes with the 1.5 ST distribution is almost completely
different from the version described in the 1.5 manual. I have not been able
to insert foo.o before bar.o in libc.a it seems the only options to add files
to an archive are 'a' for append (if not already present) and 'r' for replace
(or append if not found). Is there some weird key which allows insertion or
do I have to create a new library and start again? I suspect that insertion
just isn't supported, but don't particularly look forward to rebuilding the
library immediately after the last time. I have an archive of around 250 files
with a few missing near the middle. Yes, I was upgrading 1.5:3 to 1.5:4 and
didn't correct the pathnames in src/lib/Makefile (AARRGGHH !!!!). It takes
about 5 hours to build libc.a on a 720k floppy disk. I'll be glad when I get
enough RAM to do such work on the ramdisk.

--
Adam David
(adamd@rhi.hi.is)

ralf@ptavv.ka.sub.org (Ralf Wenk) (06/08/91)

In article <3229@krafla.rhi.hi.is> adamd@rhi.hi.is (Adam David) writes:
> The version of ar that comes with the 1.5 ST distribution is almost completely
> different from the version described in the 1.5 manual. I have not been able
> to insert foo.o before bar.o in libc.a it seems the only options to add files
> to an archive are 'a' for append (if not already present) and 'r' for replace
> (or append if not found). Is there some weird key which allows insertion or
> do I have to create a new library and start again? I suspect that insertion

The MINIX ST ar do support the SYMDEF feature. So you must not keep any
arrangement in libraries. You can just use 'r' to replace or add new object
modules.

-- 
-- 
Ralf Wenk -- ralf@ptavv.ka.sub.org

Christoph van Wuellen <HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu> (06/09/91)

Since ST MINIX ar(1)chives contain a ranlib header, the order of the
files within libc.a is irrelevant.

I rebuild the library once a week (takes 20 min.), and have never considered
putting this or that at a specific place.

C.v.W>