ruby-changes:47338
From: nobu <ko1@a...>
Date: Mon, 31 Jul 2017 13:04:18 +0900 (JST)
Subject: [ruby-changes:47338] nobu:r59454 (trunk): configure.in: use libtool
nobu 2017-07-31 13:04:10 +0900 (Mon, 31 Jul 2017) New Revision: 59454 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59454 Log: configure.in: use libtool * configure.in: use libtool on macOS to suppress a warning against debug_counter.o, which has no symbols unless USE_DEBUG_COUNTER is set to non-zero. Modified files: trunk/Makefile.in trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 59453) +++ configure.in (revision 59454) @@ -581,17 +581,21 @@ AS_CASE(["$target_cpu-$target_os"], [[i[ https://github.com/ruby/ruby/blob/trunk/configure.in#L581 CFLAGS="$save_CFLAGS" ])]) +AS_CASE(["$target_os"], [darwin*], [ + ac_cv_prog_ac_ct_RANLIB=: + ac_cv_prog_ac_ct_AR='libtool -static' + rb_cv_arflags='-no_warning_for_no_symbols -o' +]) AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(AR, ar) AS_IF([test -z "$AR"], [ AC_CHECK_PROGS(AR, aal, ar) ]) -AC_CACHE_CHECK([for $AR D option], [rb_cv_ar_D_option], [ +AC_CACHE_CHECK([for $AR flags], [rb_cv_arflags], [ 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]) + [rb_cv_arflags=rcD], [rb_cv_arflags=rcu]) ]) -AS_IF([test "$rb_cv_ar_D_option" = yes], [ARFLAGS='rcD '], [ARFLAGS='rcu ']) -AC_SUBST(ARFLAGS) +AC_SUBST(ARFLAGS, ["$rb_cv_arflags "]) AC_CHECK_TOOL(AS, as) ASFLAGS=$ASFLAGS Index: Makefile.in =================================================================== --- Makefile.in (revision 59453) +++ Makefile.in (revision 59454) @@ -166,7 +166,7 @@ RMDIRS = @RMDIRS@ https://github.com/ruby/ruby/blob/trunk/Makefile.in#L166 RMALL = @RMALL@ NM = @NM@ AR = @AR@ -ARFLAGS = @ARFLAGS@ +ARFLAGS = @ARFLAGS@$(empty) RANLIB = @RANLIB@ AS = @AS@ ASFLAGS = @ASFLAGS@ $(INCFLAGS) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/