Date: Tue, 13 May 1997 10:19:55 -0500 (CDT) From: Jim Fenno <jimf@lodgenet.com> To: hackers@freebsd.org (Hackers of FreeBSD) Subject: bsd.lib.mk Message-ID: <199705131519.KAA10896@bruno.lodgenet.com>
next in thread | raw e-mail | index | archive | help
FreeBSD: 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? Thanks in advance for any input. ------------------------------------------------------------ Jim Fenno email: James.Fenno@LodgeNet.com LodgeNet Entertainment AT&T: 605.373.1621 808 West Avenue North Free: 800.257.2345 Sioux Falls, SD 57104 Fax: 605.330.1491 ------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705131519.KAA10896>