>> 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 majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to