Subject: Re: extern __inline functions and kernel link errors
To: David Brownlee <abs@netbsd.org>
From: Frederick Bruckman <fredb@immanent.net>
List: port-mac68k
Date: 11/03/2002 20:48:41
On Sun, 3 Nov 2002, David Brownlee wrote:

> On Sun, 3 Nov 2002, Jason R Thorpe wrote:
>
> > On Sun, Nov 03, 2002 at 07:13:18PM +0100, Hauke Fath wrote:
> >
> >  > Turned out that the contents of /etc/mk.conf were relevant, after all: The
> >  > 'cpuflags' make .include apparently keeps the Makefile generated by
> >  > config(8) from setting COPTS (or CFLAGS, or whatever...). If you want to
> >  > build the kernel with any optimization, you have to set it explicitely.
> >
> > Yes, this is why I don't like the cpuflags package, and don't recommend
> > its use.
>
> 	Out of curiosity, is there any valid way to set 'COPTS+=-pipe' or
> 	similar in /etc/mk.conf without breaking 'makeoptions COPTS="..."'
> 	in kernel config files? This seems more of a limitation in the
> 	kernel build system than cpuflags per-say :)

Yes, use "COPTS?= -pipe" in "/etc/mk.conf".

Frederick