From owner-freebsd-current Sun Feb 2 8:39:25 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C507D37B405 for ; Sun, 2 Feb 2003 08:39:23 -0800 (PST) Received: from alpha.siliconlandmark.com (alpha.siliconlandmark.com [209.69.98.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C97043E4A for ; Sun, 2 Feb 2003 08:39:21 -0800 (PST) (envelope-from andy@siliconlandmark.com) Received: from alpha.siliconlandmark.com (localhost [127.0.0.1]) by alpha.siliconlandmark.com (8.12.6/8.12.6) with ESMTP id h12GdFmF012055; Sun, 2 Feb 2003 11:39:15 -0500 (EST) (envelope-from andy@siliconlandmark.com) Received: from localhost (andy@localhost) by alpha.siliconlandmark.com (8.12.6/8.12.6/Submit) with ESMTP id h12GdDwp012052; Sun, 2 Feb 2003 11:39:14 -0500 (EST) (envelope-from andy@siliconlandmark.com) X-Authentication-Warning: alpha.siliconlandmark.com: andy owned process doing -bs Date: Sun, 2 Feb 2003 11:39:13 -0500 (EST) From: Andre Guibert de Bruet To: quaxxx@tiscalinet.it Cc: Pascal Giannakakis , freebsd-current@FreeBSD.ORG Subject: Re: removing debugging options In-Reply-To: <3E39D2C1.1050608@gmx.net> Message-ID: <20030202111745.R4104@alpha.siliconlandmark.com> References: <1043946573.17844.24.camel@zoccola.quaxima.com> <3E39D2C1.1050608@gmx.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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