6.0R GENERIC makeoptions DEBUG=-g

Xin LI delphij at gmail.com
Mon Nov 14 08:50:53 GMT 2005


Hi, Simon,

On 11/14/05, Simon Ironside <sironside at interfone.net> wrote:
> Hi,
>
> /sys/i386/conf/GENERIC has this line uncommented - is this on purpose? I
> commented it out before building a new kernel.
>
> makeoptions     DEBUG=-g

I think this is intentional.  Having DEBUG=-g means that you have a
kernel.debug which contains debugging symbols, which is quite useful
if you get a kernel panic and want to report it back.  On the other
hand, debugging symbols would be stripped before you install a new
kernel so it does not affect the running kernel.

Cheers,
--
Xin LI <delphij at delphij.net> http://www.delphij.net


More information about the freebsd-questions mailing list