From owner-freebsd-hackers Tue May 13 08:20:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA24623 for hackers-outgoing; Tue, 13 May 1997 08:20:30 -0700 (PDT) Received: from garbo.lodgenet.com ([204.124.122.252]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id IAA24616 for ; Tue, 13 May 1997 08:20:27 -0700 (PDT) Received: from bruno.lodgenet.com (bruno.lodgenet.com [10.0.11.50]) by garbo.lodgenet.com (8.6.12/8.6.9) with ESMTP id KAA32345 for ; Tue, 13 May 1997 10:19:55 -0500 Received: (from jimf@localhost) by bruno.lodgenet.com (8.8.5/8.8.5) id KAA10896 for hackers@freebsd.org; Tue, 13 May 1997 10:19:56 -0500 (CDT) From: Jim Fenno Message-Id: <199705131519.KAA10896@bruno.lodgenet.com> Subject: bsd.lib.mk To: hackers@freebsd.org (Hackers of FreeBSD) Date: Tue, 13 May 1997 10:19:55 -0500 (CDT) Organization: LodgeNet Entertainment, Sioux Falls, SD, USA Phone: 605.373.1621 Reply-To: James.Fenno@lodgenet.com X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 ------------------------------------------------------------