Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Feb 2003 11:39:13 -0500 (EST)
From:      Andre Guibert de Bruet <andy@siliconlandmark.com>
To:        quaxxx@tiscalinet.it
Cc:        Pascal Giannakakis <capm@gmx.net>, freebsd-current@FreeBSD.ORG
Subject:   Re: removing debugging options
Message-ID:  <20030202111745.R4104@alpha.siliconlandmark.com>
In-Reply-To: <3E39D2C1.1050608@gmx.net>
References:  <1043946573.17844.24.camel@zoccola.quaxima.com> <3E39D2C1.1050608@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, 31 Jan 2003, Pascal Giannakakis wrote:

> Nicolao Ren=E8 schrieb:
> > Hi I've just upgraded to FreeBSD-Stable, the UPDATING file says that
> > many debugging options are enabled. But how do I remove them? thanks.
>
> One way would be to compile your own kernel:
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-bu=
ilding.html
> (choose procedure 2 when building).
>
> In your custom kernel-conf change this:
>
> ----
> #To statically compile in device wiring instead of /boot/device.hints
> #hints          "GENERIC.hints"         #Default places to look for devic=
es.
>
> makeoptions     DEBUG=3D-g                #Build kernel with gdb(1) debug
> symbols
> ----
>
> uncomment makeoptions and symbols. I dont know for Userland though, sorry=
=2E

With userland, you're left tweaking CFLAGS and CXXFLAGS in /etc/make.conf.
Here's a few things you might want to consider:

- Removing any reference to '-g' (Debug symbols).
- Adding -O or -O2 (Code optimizations). Use of -O3 is not a good idea.
- Adding CPUTYPE=3Di686 (or whatever is appropriate for your machine) will
enable cpu-specific optimizations.

Once you've made these changes, recompile and install world. A mergemaster
would probably be in order as well.

Regards,

> Andre Guibert de Bruet | Enterprise Software Consultant >
> Silicon Landmark, LLC. | http://siliconlandmark.com/    >

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030202111745.R4104>