1.cpuflags
devel/cpuflags:Determine compiler flags to best target current cpu
#cd /usr/pkgsrc/devel/cpuflags
#make install
然后在/etc/mk.conf中加入:
.sinclude "/usr/pkg/share/mk/cpuflags.mk"
.sinclude "/usr/pkg/share/mk/optimize_gcc.mk"
这样make时便能够根据cpuflags进行优化编译了。