Subject: Re: Problems with system makefiles and optimization flags
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-toolchain
Date: 11/07/2002 06:05:36
On Thu, 6 Nov 2002, Jason R Thorpe wrote:

>Revision 1.57 of <sys.mk> introduced a new "DBG" variable to hold
>default CFLAGS.  This is broken for a couple of reasons:
>
>        1. <sys.mk> contains the default rules for ALL Makefiles,
>           not just the NetBSD source tree Makefiles, i.e. random
>           3rd party programs with their own Makefiles are allowed
>           by POSIX to use default rules, which are provided by
>           <sys.mk>.  The "DBG" variable intrudes on the namespace.
>
>        2. The kernel and userland Makefiles now use completely
>           different variables for holding the optimization flags.

Currently, if I set "COPTS" to apply a sub-model optimization to the
userland binaries, it also applies to the GENERIC and INSTALL kernels
and the ramdisk, which is undesirable, and usually breaks the release.
Is there (will there) be a way to do that?

Frederick