From 0bbb8e8975ad9f00d467218098dd2d6ad8895974 Mon Sep 17 00:00:00 2001 From: luislavena Date: Sun, 30 Oct 2011 15:51:33 +0000 Subject: [PATCH] * configure.in: check -fno-omit-frame-pointer acceptance and usage under MinGW. [ruby-core:39957] [Bug #5407] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ configure.in | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 07c9188bd6..39c5088fae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 31 00:50:00 2011 Luis Lavena + + * configure.in: check -fno-omit-frame-pointer acceptance and usage + under MinGW. [ruby-core:39957] [Bug #5407] + Mon Oct 31 00:16:11 2011 Tanaka Akira * include/ruby/intern.h (rb_cloexec_fcntl_dupfd): declared. diff --git a/configure.in b/configure.in index 530301222c..a3d191a2bf 100644 --- a/configure.in +++ b/configure.in @@ -504,6 +504,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\""