From owner-freebsd-current Wed Apr 7 21:38:30 1999 Delivered-To: freebsd-current@freebsd.org Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (Postfix) with ESMTP id BFF1E1528A for ; Wed, 7 Apr 1999 21:38:25 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id OAA11412; Thu, 8 Apr 1999 14:36:24 +1000 Date: Thu, 8 Apr 1999 14:36:24 +1000 From: Bruce Evans Message-Id: <199904080436.OAA11412@godzilla.zeta.org.au> To: bde@zeta.org.au, jdp@polstra.com Subject: Re: /sys/boot, egcs vs. gcc, -Os Cc: current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> 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. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message