amd64/145593: [patch] fix MACHINE_CPU for amd64 in

Martin Matuska mm at
Fri Apr 9 22:30:02 UTC 2010

>Number:         145593
>Category:       amd64
>Synopsis:       [patch] fix MACHINE_CPU for amd64 in
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-amd64
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 09 22:30:01 UTC 2010
>Originator:     Martin Matuska
>Release:        FreeBSD 8.0-RELEASE-p2 amd64
System: FreeBSD 8.0-RELEASE-p2 
The MACHINE_CPU definition for amd64 in misses mmx 
if CPUTYPE is not set. 

It defines mmx if CPUTYPE is set to any string.
CPUTYPE unset on amd64:
MACHINE_CPU=amd64 sse2 sse

If CPUTYPE is set to any string on amd64 (e.g. unknown):
MACHINE_CPU=unknown amd64 sse2 sse mmx

Index: share/mk/
--- share/mk/	(revision 206431)
+++ share/mk/	(working copy)
@@ -9,7 +9,7 @@
 . if ${MACHINE_ARCH} == "i386"
 . elif ${MACHINE_ARCH} == "amd64"
-MACHINE_CPU = amd64 sse2 sse
+MACHINE_CPU = amd64 sse2 sse mmx
 . elif ${MACHINE_ARCH} == "ia64"
 MACHINE_CPU = itanium
 . elif ${MACHINE_ARCH} == "powerpc"

More information about the freebsd-amd64 mailing list