I'm not trying to set CFLAGS, just trying to set the proper CPUTYPE for this processor: AMD FX 8120. I only have one of these, so it's no big deal if it is not "optimized", but if there is a particular CPUTYPE to set for this processor, I would like to. I only need to buildworld, buildkernel, and build ports for this workstation, staying on this workstation. Nothing will ever be for some other architecture, or some other workstation.
So far, the options that look most appropriate are:
(I'm not sure if this is the same FX?) I usually just use Nocona, most of the time I have Core2 proc's processors. But there's a new one with AMD FX 8120.
/usr/share/examples/etc/make.conf:
then
And in /usr/share/mk/bsd.cpu.mk:
Does anyone know for sure what CPUTYPE would be the best standard option? What does native do as an option? What happens if I just leave out CPUTYPE, would it query the processor anyways? Or default to something too generic?
So far, the options that look most appropriate are:
Code:
amdfam10
athlon-fx
/usr/share/examples/etc/make.conf:
Code:
# Intel x86 architecture:
# (AMD CPUs) amdfam10, opteron-sse3, athlon64-sse3, k8-sse3,
# opteron, athlon64, athlon-fx, k8, athlon-mp,
# athlen-xp, athlon-4, athlon-tbird, athlon, k7,
# geode, k6-3, k6-2, k6
Code:
# Additionally the following CPU types are recognized by clang:
# (AMD CPUs) bdver2, bdver1, btver2, btver1
And in /usr/share/mk/bsd.cpu.mk:
Code:
. if ${CPUTYPE} == "barcelona"
CPUTYPE = amdfam10
Does anyone know for sure what CPUTYPE would be the best standard option? What does native do as an option? What happens if I just leave out CPUTYPE, would it query the processor anyways? Or default to something too generic?