From owner-freebsd-current Fri Apr 9 13:48:15 1999 Delivered-To: freebsd-current@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id 6893915AFB for ; Fri, 9 Apr 1999 13:47:53 -0700 (PDT) (envelope-from green@unixhelp.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.2/8.8.7) with ESMTP id LAA54399; Fri, 9 Apr 1999 11:09:18 -0400 (EDT) Date: Fri, 9 Apr 1999 11:09:18 -0400 (EDT) From: Brian Feldman X-Sender: green@janus.syracuse.net To: Bruce Evans Cc: current@FreeBSD.ORG, jdp@polstra.com Subject: Re: /sys/boot, egcs vs. gcc, -Os In-Reply-To: <199904090700.RAA26586@godzilla.zeta.org.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 9 Apr 1999, Bruce Evans wrote: > >> "CC+=-Os" in individual Makefiles works about as well as "CFLAGS+=-Os" for > >> adding flags. That's not very well. Removing unwanted additions is hard. > > >Why don't we have a -= operator in make(1)? > > Substitution can replace -= in may cases, e.g.: > > CC:= ${CC:S/-Os//} > > This is "hard" because it has to be coded in the makefile, while additions > can be passed to make. But what's wrong with having a specific -= operator? It would make code more readable, which is a plus. It would be obvious for people to look for such before resorting to substition rules. > > Bruce > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > Brian Feldman _ __ ___ ____ ___ ___ ___ green@unixhelp.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \__ \ |) | http://www.freebsd.org _ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message