cc16d90
diff --git a/src/qml/jsruntime/jsruntime.pri b/src/qml/jsruntime/jsruntime.pri
cc16d90
index 72010d3..2bd5acb 100644
cc16d90
--- a/src/qml/jsruntime/jsruntime.pri
cc16d90
+++ b/src/qml/jsruntime/jsruntime.pri
cc16d90
@@ -107,7 +107,7 @@ SOURCES += \
Rex Dieter 82f00b7
 
Rex Dieter 82f00b7
 # Use SSE2 floating point math on 32 bit instead of the default
Rex Dieter 82f00b7
 # 387 to make test results pass on 32 and on 64 bit builds.
Rex Dieter 82f00b7
-linux-g++*:isEqual(QT_ARCH,i386) {
Rex Dieter 82f00b7
+linux-g++*:isEqual(QT_ARCH,i386):!no_sse2 {
Rex Dieter 82f00b7
     QMAKE_CFLAGS += -march=pentium4 -msse2 -mfpmath=sse
Rex Dieter 82f00b7
     QMAKE_CXXFLAGS += -march=pentium4 -msse2 -mfpmath=sse
Rex Dieter 82f00b7
 }
cc16d90
diff --git a/src/qml/jsruntime/qv4global_p.h b/src/qml/jsruntime/qv4global_p.h
cc16d90
index b5dc674..97e9ae6 100644
cc16d90
--- a/src/qml/jsruntime/qv4global_p.h
cc16d90
+++ b/src/qml/jsruntime/qv4global_p.h
cc16d90
@@ -75,7 +75,7 @@ inline double trunc(double d) { return d > 0 ? floor(d) : ceil(d); }
Rex Dieter 82f00b7
 
Rex Dieter 82f00b7
 // White list architectures
Rex Dieter 82f00b7
 
Rex Dieter 82f00b7
-#if defined(Q_PROCESSOR_X86)
Rex Dieter 82f00b7
+#if defined(Q_PROCESSOR_X86) && defined(__SSE2__)
Rex Dieter 82f00b7
 #define V4_ENABLE_JIT
Rex Dieter 82f00b7
 #elif defined(Q_PROCESSOR_X86_64)
Rex Dieter 82f00b7
 #define V4_ENABLE_JIT