From: Luis Lavena Date: 2011-12-23T20:20:04+09:00 Subject: [ruby-core:41791] [Backport93 - Backport #5518] Please backport r33577 from trunk Issue #5518 has been updated by Luis Lavena. Hello, Anyone can take a look to this and let me know? For convenience and review, the following is the patch I want to backport: diff --git a/ChangeLog b/ChangeLog index e787db4..bf77758 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ + * Backport r33577 from trunk + + * configure.in: check -fno-omit-frame-pointer acceptance and usage + under MinGW. [ruby-core:39957] [Bug #5407] + Thu Dec 15 10:44:54 2011 Nobuyoshi Nakada * array.c (rb_ary_reject_bang, rb_ary_delete_if): update rdoc. diff --git a/configure.in b/configure.in index b6c93ef..6bcd1e9 100644 --- a/configure.in +++ b/configure.in @@ -503,6 +503,12 @@ if test "$GCC" = yes; then test "$visibility_option" = no || OBJCOPY=: fi +if test "$GCC" = yes; then + AS_CASE(["$target_os"], [mingw*], [ + RUBY_TRY_CFLAGS(-fno-omit-frame-pointer, [optflags="${optflags+$optflags }-fno-omit-frame-pointer"]) + ]) +fi + test -z "${ac_env_CFLAGS_set}" -a -n "${cflags+set}" && eval CFLAGS="\"$cflags $ARCH_FLAG\"" test -z "${ac_env_CXXFLAGS_set}" -a -n "${cxxflags+set}" && eval CXXFLAGS="\"$cxxflags $ARCH_FLAG\"" Nobu, Usa, what do you think? Thank you. ---------------------------------------- Backport #5518: Please backport r33577 from trunk https://bugs.ruby-lang.org/issues/5518 Author: Luis Lavena Status: Open Priority: Normal Assignee: Yuki Sonoda Category: Target version: Please backport r33577 from trunk, which solves Bug #5407 and Bug #5375. Thank you. -- http://redmine.ruby-lang.org