When emerging xfree with the following USE defined in /etc/make.conf: USE="mmx -sse -sse2 -3dnow X509 alsa ipv6 -gjc \ -apm acpi kde -gnome X cjk canna gtk qt nls -python -perl acl -tcpd" xfree gets compiled like this: gcc -c -ansi -pedantic -Wno-return-type -w -I../../../../../extras/Mesa/src -I../../../../../extras/Mesa/src/X86 -I../../../../../extras/Mesa/src/math -I../../../../../extras/Mesa/src/swrast_setup -I../../../../../extras/Mesa/src/tnl -I../../../../../extras/Mesa/include -I../../../include -I../../../../../exports/include/X11 -I../../../dri -I../../../glx -I../../dri -I../../../include -I../../../../../exports/include/GL -I../../../../../programs/Xserver/hw/xfree86/os-support -I../../../../../programs/Xserver/GL/dri -I../../../../.. -I../../../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -DMALLOC_0_RETURNS_NULL -DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_SSE_ASM -O2 -O2 -O2 -O2 -march=pentium-mmx -pipe ss_triangle.c -o unshared/ss_triangle.o Watch the "-DUSE_SSE_ASM" The CPU I am building this has SSE support (Celeron Tualatin), but I'm building a binary package for a destination which does not support SSE. Reproducible: Always Steps to Reproduce: 1. Use the above mentioned USE 2. emerge xfree 3. Watch the gcc options for compiling xfree Actual Results: Some (not all) drivers/libs of XFree86 use this flag. Those will run illigal code if SSE is not supported. Expected Results: -DUSE_MMX_ASM is ok, but -DUSE_SSE_ASM should not be defined in this case.
Forgot to tell which versions of xfree I emerged: 4.3.0-r5 USE_SSE_ASM seems to be used mostly in the MESA tree and some drivers (like r200).
Um yeah this is quite simple by the looks of it... Same as the MesaUseMMX entries in the ebuild except in this case MesaUseSSE... This feature is in all the maintained builds >=xfree-4.3.0-r6
Please use xfree-4.3.0-r6 or xorg-x11-6.7.0, both of which contain this.