Subject: Re: optimizing compilation of netbsd-current
To: Scott Zahn <scott@xeroxparc.net>
From: Perry E. Metzger <perry@piermont.com>
List: netbsd-help
Date: 09/14/2003 21:18:16
Scott Zahn <scott@xeroxparc.net> writes:
> Hey all, I'm in the process of upgrading netbsd 1.6 to netbsd-current on
> my box.  I really want to optimize the binaries I'm compiling.

The system will already -O2 all the binaries you generate. Is there
something else you are looking for?

> Is there a
> better way to specify gcc flags other than editing the 20 or so Makefiles
> and configure scripts?  I already have CFLAGS and CPPFLAGS set in my
> environment, but they don't seem to have any affect.

The environment won't impact those, but you might try /etc/mk.conf

However, I'm not sure you really want to be touching them...


.pm