summaryrefslogtreecommitdiff
path: root/extra/ruby/disable_sse2_on_i686.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ruby/disable_sse2_on_i686.patch')
-rw-r--r--extra/ruby/disable_sse2_on_i686.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/extra/ruby/disable_sse2_on_i686.patch b/extra/ruby/disable_sse2_on_i686.patch
new file mode 100644
index 000000000..45eda4484
--- /dev/null
+++ b/extra/ruby/disable_sse2_on_i686.patch
@@ -0,0 +1,27 @@
+diff --git a/configure.in b/configure.in
+index e952cc7..e5f86cc 100644
+--- a/configure.in
++++ b/configure.in
+@@ -868,22 +868,6 @@ if test "$GCC" = yes; then
+ for oflag in -fno-fast-math; do
+ RUBY_TRY_CFLAGS($oflag, [RUBY_APPEND_OPTION(optflags, $oflag)])
+ done
+- AS_CASE(["$target"],
+- [*-darwin*], [
+- # doesn't seem necessary on Mac OS X
+- ],
+- [[i[4-6]86*]], [
+- RUBY_TRY_CFLAGS(-msse2 -mfpmath=sse, [
+- RUBY_APPEND_OPTION(XCFLAGS, -msse2 -mfpmath=sse)
+- ])
+- AS_CASE(["$XCFLAGS"],
+- [[*-msse2*]], [
+- RUBY_TRY_CFLAGS(-mstackrealign, [
+- RUBY_APPEND_OPTION(XCFLAGS, -mstackrealign)
+- ])
+- ])
+- ]
+- )
+ fi
+
+ AC_ARG_WITH(opt-dir,