diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 7 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sun Feb 9 13:59:29 2014 Tanaka Akira <akr@fsij.org> + + * configure.in: Fix compilation error. + https://bugs.ruby-lang.org/issues/8358#note-16 + Sun Feb 9 05:20:24 2014 NARUSE, Yui <naruse@ruby-lang.org> * configure.in (rb_cv_gnu_qsort_r): use compile error "conflicting diff --git a/configure.in b/configure.in index 678fe18e01..6baa495bed 100644 --- a/configure.in +++ b/configure.in @@ -867,8 +867,13 @@ if test "$GCC" = yes; then [[i[4-6]86*]], [ RUBY_TRY_CFLAGS(-msse2 -mfpmath=sse, [ RUBY_APPEND_OPTION(XCFLAGS, -msse2 -mfpmath=sse) - RUBY_TRY_CFLAGS(-mstackrealign, [RUBY_APPEND_OPTION(XCFLAGS, -mstackrealign)]) ]) + AS_CASE(["$XCFLAGS"], + [[*-msse2*]], [ + RUBY_TRY_CFLAGS(-mstackrealign, [ + RUBY_APPEND_OPTION(XCFLAGS, -mstackrealign) + ]) + ]) ] ) fi |