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

ruby-changes:28080

From: nobu <ko1@a...>
Date: Fri, 5 Apr 2013 23:08:37 +0900 (JST)
Subject: [ruby-changes:28080] nobu:r40132 (trunk): configure.in: gcc_major

nobu	2013-04-05 23:08:27 +0900 (Fri, 05 Apr 2013)

  New Revision: 40132

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

  Log:
    configure.in: gcc_major
    
    * configure.in: use gcc_major value.

  Modified files:
    trunk/configure.in

Index: configure.in
===================================================================
--- configure.in	(revision 40131)
+++ configure.in	(revision 40132)
@@ -434,7 +434,7 @@ RUBY_CPPOUTFILE https://github.com/ruby/ruby/blob/trunk/configure.in#L434
 AC_SUBST(OUTFLAG)
 AC_SUBST(COUTFLAG)
 
-cc_version_option=
+cc_version=
 for option in --version -v -V -qversion; do
     $CC $option > /dev/null 2>&1 || continue
     cc_version='$(CC) '$option
@@ -765,13 +765,7 @@ if test "$GCC" = ""; then https://github.com/ruby/ruby/blob/trunk/configure.in#L765
     AS_CASE(["$target_os"],[aix*],[warnflags="$warnflags -qinfo=por" rb_cv_warnflags="$rb_cv_warnflags -qinfo=por"])
 fi
 if test "$GCC" = yes; then
-    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
-	@%:@if !(defined __GNUC__ && __GNUC__ >= 4)
-	@%:@error not GCC 4 or later
-	>>>not GCC 4 or later<<<
-	@%:@endif])],
-	[visibility_option=yes], [visibility_option=no])
-    if test "$visibility_option" = yes; then
+    if test "$gcc_major" -ge 4; then
 	RUBY_TRY_CFLAGS(-fvisibility=hidden, [visibility_option=yes], [visibility_option=no])
     fi
     AC_SUBST(WERRORFLAG, "-Werror")

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

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