Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.uoknor.edu!news.nodak.edu!netnews3.nwnet.net!netnews.nwnet.net!news.u.washington.edu!uw-beaver!nntp.cs.ubc.ca!psgrain!usenet.eel.ufl.edu!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: ld & PIC & bsd.lib.mk question Date: 20 Aug 1996 21:54:54 GMT Organization: Private BSD site, Dresden Lines: 22 Message-ID: <4vdc7e$i2g@uriah.heep.sax.de> References: <3219A9CD.41C67EA6@rockwell.cz> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Petr Kodl <pecold@rockwell.cz> wrote: > Could anyone explain meaning of the following step in > <bsd.lib.mk> > > ..cc.so .C.so: > ${CXX} ${PICFLAG} -DPIC ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET} > @${LD} -x -r ${.TARGET} > @mv a.out ${.TARGET} > > Is it necessary to call the ld to process the object, or is it just > some step speeding up further file processing ? It seems like it's there to strip local symbols from the .so file, so they won't bloat the shared library. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)