From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e71619b99643375e X-Google-Attributes: gidfee84,public From: tringali@news.ed.ray.com (Scott Tringali) Subject: Re: Compressing archives... Date: 1996/01/05 Message-ID: <4cj48m$ddh@news.res.ray.com>#1/1 X-Deja-AN: 134079611 x-disclaimer: This is the author's opinion and not that of Raytheon Company. references: <4cgl9r$s7e@news.res.ray.com> x-authentication-warning: The author was not authenticated. content-type: text/plain; charset=us-ascii organization: Raytheon Electronic Systems mime-version: 1.0 reply-to: tringali@ultranet.com newsgroups: comp.unix.osf.osf1 I received a solution via mail, for all those interested, here it is: > This being the case, the user will > want to grab this patch kit from the CSC: # OSF350-049. This fixes > several problems in ar related to compressed objects as well as similar > bugs in nm, odump and libmld.a. > > With respect to the problem in general, there's two approaches (assuming > they have the fixed ar): > > 1) the user can compile all the .o's with -compress and just ar them into > an archive. (ie: cc -c -compress *.c ; ar cr mylib.a *.o) > > 2) the user can compile all the .o's normally and use the 'Z' option to > ar to compress them on the fly as they are added to the archive. (ie: > cc -c *.c ; ar crZ mylib.a *.o) > > Lastly, if the user doesn't want to take the patch kit, they can also use > objZ directly on the .o's after using the old ar. (ie: cc -c *.c ; > ar crZ mylib.a *.o ; objZ *.o) > > Hope this helps. I don't travel the news groups regularly, so please feel > free to post this yourself. -- Scott J. Tringali, tringali@ultranet.com Raytheon Electronic Systems, International Air Traffic Control