--- source/mupen64plus-video-rice/projects/unix/Makefile	2011-12-17 20:14:08.000000000 -0500
+++ source/mupen64plus-video-rice/projects/unix/Makefile	2011-12-17 20:34:47.000000000 -0500
@@ -171,6 +171,11 @@
 ifeq ($(OS),FREEBSD)
     CFLAGS  += $(shell sdl-config --cflags)
     LDLIBS += $(shell sdl-config --libs)
+    ifeq ($(CPU), X86)
+      ifeq ($(ARCH_DETECTED), 32BITS)
+        CFLAGS += -pipe -mmmx -msse -fomit-frame-pointer
+      endif
+    endif
 endif
 ifeq ($(OS),OSX)
     CFLAGS  += $(shell sdl-config --cflags)
