ruby-changes:27108
From: akr <ko1@a...>
Date: Fri, 8 Feb 2013 21:29:10 +0900 (JST)
Subject: [ruby-changes:27108] akr:r39160 (trunk): * configure.in: don't define ARCH_FLAG="-march=i486" if it causes
akr 2013-02-08 21:20:27 +0900 (Fri, 08 Feb 2013) New Revision: 39160 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39160 Log: * configure.in: don't define ARCH_FLAG="-march=i486" if it causes compilation problem. Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 39159) +++ configure.in (revision 39160) @@ -1553,7 +1553,15 @@ AS_CASE(["$target_cpu-$target_os"], [[i[ https://github.com/ruby/ruby/blob/trunk/configure.in#L1553 [rb_cv_gcc_compiler_cas=yes], [rb_cv_gcc_compiler_cas=no])]) if test "$rb_cv_gcc_compiler_cas" = no; then + unset rb_cv_gcc_compiler_cas ARCH_FLAG="-march=i486" + AC_CACHE_CHECK([for __sync_val_compare_and_swap with -march=i486], [rb_cv_gcc_compiler_cas], [ + AC_TRY_LINK([unsigned long atomic_var;], + [ + __sync_val_compare_and_swap(&atomic_var, 0, 1); + ], + [rb_cv_gcc_compiler_cas=yes], + [rb_cv_gcc_compiler_cas=no; unset ARCH_FLAG])]) fi]) AC_CACHE_CHECK(for signbit, rb_cv_have_signbit, Index: ChangeLog =================================================================== --- ChangeLog (revision 39159) +++ ChangeLog (revision 39160) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Feb 8 21:19:41 2013 Tanaka Akira <akr@f...> + + * configure.in: don't define ARCH_FLAG="-march=i486" if it causes + compilation problem. + Fri Feb 8 19:56:54 2013 NAKAMURA Usaku <usa@r...> * array.c (rb_ary_dup): reverted r39004. see [Bug #7768], and -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/