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

ruby-changes:41724

From: nobu <ko1@a...>
Date: Wed, 10 Feb 2016 12:03:50 +0900 (JST)
Subject: [ruby-changes:41724] nobu:r53798 (trunk): check ar D flag

nobu	2016-02-10 12:03:57 +0900 (Wed, 10 Feb 2016)

  New Revision: 53798

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53798

  Log:
    check ar D flag
    
    * configure.in (ARFLAGS): check if deterministic mode flag is
      effective, which is on by default on Ubuntu.

  Modified files:
    trunk/ChangeLog
    trunk/Makefile.in
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 53797)
+++ configure.in	(revision 53798)
@@ -567,6 +567,12 @@ AC_CHECK_TOOL(AR, ar) https://github.com/ruby/ruby/blob/trunk/configure.in#L567
 if test -z "$AR"; then
   AC_CHECK_PROGS(AR, aal, ar)
 fi
+AC_CACHE_CHECK([for $AR D option], [rb_cv_ar_D_option], [
+    AS_IF([$AR rcD conftest.a > /dev/null 2>&1 && rm conftest.a],
+	[rb_cv_ar_D_option=yes], [rb_cv_ar_D_option=no])
+])
+AS_IF([test "$rb_cv_ar_D_option" = yes], [ARFLAGS=rcD], [ARFLAGS=rcu])
+AC_SUBST(ARFLAGS)
 
 AC_CHECK_TOOL(AS, as)
 ASFLAGS=$ASFLAGS
Index: Makefile.in
===================================================================
--- Makefile.in	(revision 53797)
+++ Makefile.in	(revision 53798)
@@ -165,7 +165,7 @@ RMDIRS        = @RMDIRS@ https://github.com/ruby/ruby/blob/trunk/Makefile.in#L165
 RMALL         = @RMALL@
 NM            = @NM@
 AR            = @AR@
-ARFLAGS       = rcu
+ARFLAGS       = @ARFLAGS@
 RANLIB        = @RANLIB@
 AS            = @AS@
 ASFLAGS       = @ASFLAGS@ $(INCFLAGS)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53797)
+++ ChangeLog	(revision 53798)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Feb 10 12:03:41 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in (ARFLAGS): check if deterministic mode flag is
+	  effective, which is on by default on Ubuntu.
+
 Tue Feb  9 16:36:23 2016  Naotoshi Seo  <sonots@g...>
 
 	* lib/logger.rb: Remove block from Logger.add as it's not needed

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

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