Index: share/mk/bsd.cpu.mk =================================================================== RCS file: /home/ncvs/src/share/mk/bsd.cpu.mk,v retrieving revision 1.62 diff -u -r1.62 bsd.cpu.mk --- share/mk/bsd.cpu.mk 21 May 2007 08:39:44 -0000 1.62 +++ share/mk/bsd.cpu.mk 28 Aug 2007 05:50:09 -0000 @@ -18,6 +18,14 @@ . endif .else +# Handle 'native' by converting it to the appropriate CPUTYPE + +.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" +. if ${CPUTYPE} == "native" +CPUTYPE != gcc -v -x c -E -mtune=native /dev/null -o /dev/null 2>&1 | grep mtune | sed -e 's/.*mtune=//' +. endif +.endif + # Handle aliases (not documented in make.conf to avoid user confusion # between e.g. i586 and pentium)