Subject: Re: CFLAGS
To: None <tech-kern@NetBSD.org>
From: Pavel Cahyna <pavel@NetBSD.org>
Date: 11/08/2007 20:21:00
On Fri, Nov 09, 2007 at 01:09:02AM +0900, SODA Noriyuki wrote:
> >>>>> On Thu, 08 Nov 2007 11:05:13 -0500,
> "Johnny C. Lam" <email@example.com> said:
> > Zafer Aydogan wrote:
> >> setting CFLAGS=-g -march=i686 in /etc/mk.conf blows my kernel from
> >> 3.5 MB to 21 MB.
> > Remove "-g" from your CFLAGS.
> And use the following kernel config option, if you want the debug
> makeoptions DEBUG="-g"
... which creates a big netbsd.gdb with debugging information and a small
netbsd without them.