diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 6 |
2 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Mon Oct 31 00:50:00 2011 Luis Lavena <luislavena@gmail.com> + + * 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 <akr@fsij.org> * 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\"" |