*BSD News Article 76461


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!usenet.eel.ufl.edu!news.mathworks.com!newsfeed.internetmci.com!in3.uu.net!EU.net!news.eunet.cz!usenet
From: Petr Kodl <pecold@rockwell.cz>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: ld & PIC & bsd.lib.mk question
Date: Tue, 20 Aug 1996 12:04:29 +0000
Organization: Rockwell Automation, s.r.o.
Lines: 14
Message-ID: <3219A9CD.41C67EA6@rockwell.cz>
NNTP-Posting-Host: merlin.research.rockwell.cz
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.01 (X11; I; BSD/386 uname failed)

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 ?

Thanks in advance 

pecold