Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!mnetor!seismo!caip!clyde!cbatt!cbdkc1!cbnap!whp From: whp@cbnap.UUCP Newsgroups: net.unix-wizards Subject: Re: ranlib and ``ucb'' Message-ID: <147@cbnap.UUCP> Date: Mon, 14-Jul-86 15:14:01 EDT Article-I.D.: cbnap.147 Posted: Mon Jul 14 15:14:01 1986 Date-Received: Tue, 15-Jul-86 04:59:50 EDT References: <1916@brl-smoke.ARPA> <1278@ncoast.UUCP> <292@foxvax5.UUCP> <2318@umcp-cs.UUCP> <4976@sun.uucp> <1060@ttrdc.UUCP> Reply-To: whp@cbnap.UUCP (W. H. Pollock x4575 3S235) Organization: AT&T Bell Laboratories, Columbus Lines: 23 Keywords: ar, ranlib, library Summary: Uses of "ar -ts" In article <1060@ttrdc.UUCP> levy@ttrdc.UUCP (Daniel R. Levy) writes: >In article <4976@sun.uucp>, guy@sun.uucp (Guy Harris) writes: >>... (It's not perfect; if you copy an archive file, you have to do >>"ar ts >/dev/null" to reconstruct the table of symbols. ... >> Guy Harris > >... Please clarify? The only reason to use "ar -ts" on my machine (Sys V 2.0) is after running strip on an archive library; we run strip to remove the debugging info included when compiling with the "-g" option. As strip does remove the table of contents, "ar -ts" must be used to restore it. This may change under newer versions of unix - the mod time on libraries is probably important with unixs that allow shared libraries (Sys V 3.0??). W. H. Pollock, UUCP: ...{ihnp4,cbatt}!cbnap!whp DELPHI: WHP GEnie: W.POLLOCK "The opinions expressed above are ficticious. Any resemblance to the opinions of persons living or dead is purely coincidental."