From: Richard Dawe Newsgroups: comp.os.msdos.djgpp Subject: Re: Using strip --strip-debug on libraries Date: Wed, 14 Jun 2000 22:12:51 +0100 Organization: Customer of Planet Online Lines: 24 Message-ID: <3947F553.5ED791EA@phekda.freeserve.co.uk> References: <3946A07E DOT 98F13651 AT phekda DOT freeserve DOT co DOT uk> NNTP-Posting-Host: modem-126.neilsborium.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsg3.svr.pol.co.uk 961019395 7701 62.136.73.254 (14 Jun 2000 21:49:55 GMT) NNTP-Posting-Date: 14 Jun 2000 21:49:55 GMT X-Complaints-To: abuse AT theplanet DOT net X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.14 i586) X-Accept-Language: de,fr CC: rich AT phekda DOT freeserve DOT co DOT uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello. "Mark E." wrote: > > Richard Dawe wrote: > > >> A more importtant question is: how did that library wind up with more > >> than a single copy of init.o in it? > > One possibility is if the archive was created with 'ar rP'. The 'P' > option prevents the directory part of the filename from being stripped > until the filename is written into the archive. This also prevents > 'init.o' in the archive from matching 'x/init.o' so 'x/init.o' gets > added as another 'init.o'. It's hard to tell how ar is called. libtool is used to build the libraries and I can't decypher what's going on. I'll investigate sometime when I next run Windows. Thanks, bye, -- Richard Dawe [ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]