Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Apr 1999 14:24:47 -0400 (EDT)
From:      Brian Feldman <green@unixhelp.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        jdp@polstra.com, current@FreeBSD.ORG
Subject:   Re: /sys/boot, egcs vs. gcc, -Os
Message-ID:  <Pine.BSF.4.05.9904081424230.41086-100000@janus.syracuse.net>
In-Reply-To: <199904080436.OAA11412@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9904081424230.41086-100000>