Quote:
Originally Posted by MetalHead
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
CPUTYPE=athlon64
|
Should be:
This allows override where needed.
Quote:
Originally Posted by MetalHead
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.