Date: Tue, 13 May 1997 12:16:50 -0700 (MST) From: Terry Lambert <terry@lambert.org> To: James.Fenno@lodgenet.com Cc: hackers@FreeBSD.ORG Subject: Re: bsd.lib.mk Message-ID: <199705131916.MAA10627@phaeton.artisoft.com> In-Reply-To: <199705131519.KAA10896@bruno.lodgenet.com> from "Jim Fenno" at May 13, 97 10:19:55 am
next in thread | previous in thread | raw e-mail | index | archive | help
> I have been looking at the bsd.lib.mk template and I am curious why the > compilation rules contain a CC command and a LD command. For example, > the .c.o rule is as follows: > > .c.o: > ${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} > @${LD} -O ${.TARGET} -x -r ${.TARGET} > > > The man page for ld(1) says... > > -r Produce relocatable object file, suitable for another pass > through ld. > -x Discard all local symbols in the input files. > > Is there a benefit to the ld -x option? Yeah; it makes you have to update all your /usr/share/mk files and your 'ld' program, and "conveniently" suplicates functionality already present in "strip". Plus it makes you recompile 'ld' to use the stupid option that does the tmp file juggling. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705131916.MAA10627>