зеркало из https://github.com/github/ruby.git
* configure.in: should not use -Werror=* flags while conftests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
89bd00d804
Коммит
85f8c01a6d
|
@ -1,3 +1,7 @@
|
|||
Fri Jan 21 18:15:09 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in: should not use -Werror=* flags while conftests.
|
||||
|
||||
Fri Jan 21 09:17:00 2011 Luis Lavena <luislavena@gmail.com>
|
||||
|
||||
* configure.in: Fix incorrectly detected x86_64-w64-mingw32 due
|
||||
|
|
|
@ -469,6 +469,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}"])
|
||||
rb_cv_warnflags="$warnflags"
|
||||
warnflags=
|
||||
fi
|
||||
if test "$GCC" = yes; then
|
||||
RUBY_TRY_CFLAGS(-fvisibility=hidden, [RUBY_APPEND_OPTION(XCFLAGS, -fvisibility=hidden)])
|
||||
|
@ -2579,6 +2581,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
|
||||
|
|
Загрузка…
Ссылка в новой задаче