Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Apr 1999 14:36:24 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, jdp@polstra.com
Cc:        current@FreeBSD.ORG
Subject:   Re: /sys/boot, egcs vs. gcc, -Os
Message-ID:  <199904080436.OAA11412@godzilla.zeta.org.au>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904080436.OAA11412>