compiling optimization for a specific processor when using ports

Why not the greatest idea?
Speed benefits are minimal (at least in the x86 family) but you can't ever use your compiled binaries on a different machine. Even worse, some software has very subtle bugs that are only "discovered" by optimizing -- you might just break your system.
 
Ports (and everything else) already tend to use the most optimal compiler options. There's very little to gain here.
 
Setting CPUTYPE isn't a bad idea,

Code:
/usr/share/examples/etc/make.conf

Code:
/etc/make.conf
CPUTYPE?=nehalem

Not an optimization of binaries but setting MAKE_JOBS_NUMBER to something sane for your system speeds up things tremendously.
Code:
MAKE_JOBS_NUMBER=4

Do not play around with CFLAGS or COPTFLAGS etc however
 
Back
Top