Subject: Re: misc/3300: Allow compiling with debug options
To: Simon J. Gerraty <>
From: Chris G. Demetriou <>
List: netbsd-bugs
Date: 03/08/1997 23:28:38
> > Third-party sources should be built into debugging executables in
> > whatever way the authors suggest/enforce in their Makefiles.
> Then perhaps -O should be removed from

Perhaps, but it is a reasonable default for people/programs which do
not provide any other default.  Those defaults are provided in the
'normal' way (i.e. CFLAGS), so that programs or users which overried
them in the 'normal' way get the expected result.

In general, at least in my opinion, you want binaries compiled for
'general production use' to be compiled with -O, and not with -g.  The
former means that they will perform hopefully somewhat better than
without, and the latter means that they won't have lots of space
wasted on debugging information that won't normally be used.

the current defaults are quite reasonable, as far as I'm concerned.