[前][次][番号順一覧][スレッド一覧]

ruby-changes:27110

From: akr <ko1@a...>
Date: Fri, 8 Feb 2013 23:26:25 +0900 (JST)
Subject: [ruby-changes:27110] akr:r39162 (trunk): * configure.in: change CFLAGS temporally to test

akr	2013-02-08 23:26:13 +0900 (Fri, 08 Feb 2013)

  New Revision: 39162

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39162

  Log:
    * configure.in: change CFLAGS temporally to test
      ARCH_FLAG="-march=i486".

  Modified files:
    trunk/ChangeLog
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 39161)
+++ configure.in	(revision 39162)
@@ -1555,13 +1555,17 @@ AS_CASE(["$target_cpu-$target_os"], [[i[ https://github.com/ruby/ruby/blob/trunk/configure.in#L1555
 	 if test "$rb_cv_gcc_compiler_cas" = no; then
 		 unset rb_cv_gcc_compiler_cas
 		 ARCH_FLAG="-march=i486"
+		 save_CFLAGS="$CFLAGS"
+		 CFLAGS="$CFLAGS -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])])
+					      [rb_cv_gcc_compiler_cas=yes
+					       ARCH_FLAG="-march=i486"],
+					      [rb_cv_gcc_compiler_cas=no])])
+		 CFLAGS="$save_CFLAGS"
 	 fi])
 
 AC_CACHE_CHECK(for signbit, rb_cv_have_signbit,
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39161)
+++ ChangeLog	(revision 39162)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Feb  8 23:25:33 2013  Tanaka Akira  <akr@f...>
+
+	* configure.in: change CFLAGS temporally to test
+	  ARCH_FLAG="-march=i486".
+
 Fri Feb  8 21:19:41 2013  Tanaka Akira  <akr@f...>
 
 	* configure.in: don't define ARCH_FLAG="-march=i486" if it causes

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]