From owner-freebsd-current Thu Apr 8 11:27:11 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 C571914C8A for ; Thu, 8 Apr 1999 11:27:07 -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 OAA42177; Thu, 8 Apr 1999 14:24:48 -0400 (EDT) Date: Thu, 8 Apr 1999 14:24:47 -0400 (EDT) From: Brian Feldman X-Sender: green@janus.syracuse.net To: Bruce Evans Cc: jdp@polstra.com, current@FreeBSD.ORG Subject: Re: /sys/boot, egcs vs. gcc, -Os In-Reply-To: <199904080436.OAA11412@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 Thu, 8 Apr 1999, Bruce Evans wrote: > >> Actually, they don't. Compiler-specific options can be put in ${CC}. > >> Perhaps they even should be. > > > >But in this case, we want "-Os" (egcs) or "-O2" (gcc) only for > >building boot -- not for everything. It could be parameterized with > >make macros like "OPT_SMALL" and "OPT_FAST" in the *.mk files, I > >suppose. > > "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. > > BTW, boot2/Makefile uses "CFLAGS=" to override any previous definition > of CFLAGS. This may break `make world' by removing -nostdinc. Why don't we have a -= operator in make(1)? > > 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