View Single Post
  #5   (View Single Post)  
Old 21st October 2008
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Default

Quote:
Originally Posted by MetalHead View Post
You're probably thinking that I should leave well enough alone, nah, I like to see what I can get by with without breaking something.
Better keep a rescue disk handy then. There really isn't much to gain with higher optimization levels especially with the FreeBSD kernel and userland. Unless the system doesn't mean much to you, then be warned you can really mess up a buildworld with custom CFLAGS.

You probably don't want to use a strange set of CFLAGS as a blanket for all ports either since some can break. Many ports that can stand higher optimizations with usually give you an option to do so.
Quote:
Originally Posted by MetalHead View Post
CPUTYPE=athlon64
Should be:
Code:
CPUTYPE?=athlon64
This allows override where needed.
Quote:
Originally Posted by MetalHead View Post
CFLAGS= -O2 -pipe
The default is:
Code:
CFLAGS= -O2 -fno-strict-aliasing -pipe
You want to keep -fno-strict-aliasing in there since some ports can break without it. See /usr/share/examples/etc/make.conf for further explanation.
Reply With Quote