On Fri, 31 Jan 2003, Pascal Giannakakis wrote: > Nicolao Ren� 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-building.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 devices. > > makeoptions DEBUG=-g #Build kernel with gdb(1) debug > symbols > ---- > > uncomment makeoptions and symbols. I dont know for Userland though, sorry.
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=i686 (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 [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message