зеркало из https://github.com/github/ruby.git
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2fa38c5913
Коммит
bf87195ea3
|
@ -166,7 +166,7 @@ RMDIRS = @RMDIRS@
|
||||||
RMALL = @RMALL@
|
RMALL = @RMALL@
|
||||||
NM = @NM@
|
NM = @NM@
|
||||||
AR = @AR@
|
AR = @AR@
|
||||||
ARFLAGS = @ARFLAGS@
|
ARFLAGS = @ARFLAGS@$(empty)
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
AS = @AS@
|
AS = @AS@
|
||||||
ASFLAGS = @ASFLAGS@ $(INCFLAGS)
|
ASFLAGS = @ASFLAGS@ $(INCFLAGS)
|
||||||
|
|
12
configure.in
12
configure.in
|
@ -581,17 +581,21 @@ AS_CASE(["$target_cpu-$target_os"], [[i[3-6]86*]], [
|
||||||
CFLAGS="$save_CFLAGS"
|
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(RANLIB, ranlib, :)
|
||||||
AC_CHECK_TOOL(AR, ar)
|
AC_CHECK_TOOL(AR, ar)
|
||||||
AS_IF([test -z "$AR"], [
|
AS_IF([test -z "$AR"], [
|
||||||
AC_CHECK_PROGS(AR, aal, 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],
|
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, ["$rb_cv_arflags "])
|
||||||
AC_SUBST(ARFLAGS)
|
|
||||||
|
|
||||||
AC_CHECK_TOOL(AS, as)
|
AC_CHECK_TOOL(AS, as)
|
||||||
ASFLAGS=$ASFLAGS
|
ASFLAGS=$ASFLAGS
|
||||||
|
|
Загрузка…
Ссылка в новой задаче