From owner-freebsd-arch Wed May 10 1:26:43 2000 Delivered-To: freebsd-arch@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id CDF1F37B7FC for ; Wed, 10 May 2000 01:26:39 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id SAA08135; Wed, 10 May 2000 18:26:31 +1000 Date: Wed, 10 May 2000 18:26:28 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: "David O'Brien" Cc: arch@FreeBSD.ORG Subject: Re: .s -> .S filename change in /sys In-Reply-To: <20000509094758.A45336@dragon.nuxi.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 9 May 2000, David O'Brien wrote: > I would like to rename the extension of all the .s files in /sys that need > pre-processing to .S. There are two reasons for this. I've wanted to do this for about 8 years :-). > 2. If one has "-save-temps" in CFLAGS and edits a .s file, ``make'' will > not build a new object. ``make'' uses the datestamp of the .s file > saved to disk due to the "-save-temps" option to `cc' since ``make'' > is hardwired to check OBJDIR before any .PATH:'s. Thus ``make'' > incorrectly decides everything is up to date and nothing needs to be > rebuilt. This is a bug in bsd.lib.mk and perhaps in other makefiles that override .SUFFIXES. In sys.mk, .S is before .s in .SUFFIXES, so the .S.o rule has precedence over the .s.o rule. bsd.lib.mk reverses this order. This must be just a bug, since there aren't even any .s files in non-contrib'ed libraries. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message