diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-15 10:44:58 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-15 10:44:58 +0000 |
commit | 61a4ee9b6841a18864060f3b4636711e12a71485 (patch) | |
tree | 25ab1ca8cdb1363a94df5e5ddbd373b5acded199 | |
parent | 01e84b104c4dd7003104f202903838ff2f5fed8f (diff) | |
download | ruby-61a4ee9b6841a18864060f3b4636711e12a71485.tar.gz |
* configure.in: fix and resubmit r30621. [ruby-dev:43203]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.in | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Tue Feb 15 19:43:23 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * configure.in: fix and resubmit r30621. [ruby-dev:43203] + Tue Feb 15 15:41:30 2011 NARUSE, Yui <naruse@ruby-lang.org> * array.c (array_join): copy the encoding of the first element as diff --git a/configure.in b/configure.in index 29007f044c..294dee3ba3 100644 --- a/configure.in +++ b/configure.in @@ -441,6 +441,7 @@ AC_DEFUN(RUBY_TRY_LDFLAGS, [ save_LDFLAGS= ]) +rb_cv_warnflags="$warnflags" if test "$GCC:${warnflags+set}:no" = yes::no; then particular_werror_flags=yes for wflag in -Wno-unused-parameter -Wno-parentheses -Wno-long-long \ @@ -469,6 +470,8 @@ if test "$GCC:${warnflags+set}:no" = yes::no; then AS_CASE([" $warnflags "],[*" -Wno-missing-field-initializers "*], [wflag=-Wextra], [wflag=-Wall]) RUBY_TRY_CFLAGS($wflag, [warnflags="$wflag${warnflags+ $warnflags}"]) + # Disable warnflags while conftest. -Werror=* flags might make bad OS capability guess. + warnflags= fi if test "$GCC" = yes; then RUBY_TRY_CFLAGS(-fvisibility=hidden, [RUBY_APPEND_OPTION(XCFLAGS, -fvisibility=hidden)]) @@ -2580,6 +2583,7 @@ if test "${ARCH_FLAG}"; then CXXFLAGS=`echo "$CXXFLAGS" | sed "s|$archflagpat"'|$(ARCH_FLAG)|'` LDFLAGS=`echo "$LDFLAGS" | sed "s|$archflagpat"'|$(ARCH_FLAG)|'` fi +warnflags="$rb_cv_warnflags" AC_SUBST(cppflags, [])dnl AC_SUBST(cflags, ["$orig_cflags "'${optflags} ${debugflags} ${warnflags}'])dnl AC_SUBST(cxxflags, ["$orig_cxxflags "'${optflags} ${debugflags} ${warnflags}'])dnl |