ruby-changes:22791
From: nobu <ko1@a...>
Date: Tue, 28 Feb 2012 11:45:16 +0900 (JST)
Subject: [ruby-changes:22791] nobu:r34840 (trunk): * configure.in (debugflags): check if -ggdb is accepted.
nobu 2012-02-28 11:44:52 +0900 (Tue, 28 Feb 2012) New Revision: 34840 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34840 Log: * configure.in (debugflags): check if -ggdb is accepted. [ruby-core:42875][Bug #6080] Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 34839) +++ configure.in (revision 34840) @@ -289,12 +289,10 @@ if test "$GCC" = yes; then linker_flag=-Wl, : ${optflags=-O3} - AS_CASE(["$target_os"], [linux*|darwin*], [: ${debugflags=-ggdb}]) RUBY_APPEND_OPTIONS(XCFLAGS, ["-include ruby/config.h" "-include ruby/missing.h"]) else linker_flag= fi -test $ac_cv_prog_cc_g = yes && : ${debugflags=-g} RUBY_PROG_GNU_LD RUBY_CPPOUTFILE @@ -490,6 +488,9 @@ warnflags= fi if test "$GCC" = yes; then + test "${debugflags+set}" || {RUBY_TRY_CFLAGS(-ggdb, [debugflags=-ggdb])} + test "${debugflags+set}" || {RUBY_TRY_CFLAGS(-g3, [debugflags=-g3])} + # -D_FORTIFY_SOURCE RUBY_TRY_CFLAGS(-D_FORTIFY_SOURCE=2, [RUBY_APPEND_OPTION(XCFLAGS, -D_FORTIFY_SOURCE=2)]) @@ -513,6 +514,7 @@ # suppress annoying -Wstrict-overflow warnings RUBY_TRY_CFLAGS(-fno-strict-overflow, [RUBY_APPEND_OPTION(XCFLAGS, -fno-strict-overflow)]) fi +test $ac_cv_prog_cc_g = yes && : ${debugflags=-g} if test "$GCC" = ""; then AS_CASE(["$target_os"],[aix*],[warnflags="-qinfo=por"]) Index: ChangeLog =================================================================== --- ChangeLog (revision 34839) +++ ChangeLog (revision 34840) @@ -1,3 +1,8 @@ +Tue Feb 28 11:44:49 2012 Nobuyoshi Nakada <nobu@r...> + + * configure.in (debugflags): check if -ggdb is accepted. + [ruby-core:42875][Bug #6080] + Tue Feb 28 10:28:51 2012 Aaron Patterson <aaron@t...> * ext/psych/lib/psych.rb: default open YAML files with utf8 external -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/