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 majord...@freebsd.org > with "unsubscribe freebsd-current" in the body of the message > Brian Feldman _ __ ___ ____ ___ ___ ___ gr...@unixhelp.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \__ \ |) | http://www.freebsd.org _ |___/___/___/ To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message