From 6b9eeba4ecf022cc9e8dc6c0e74838427075ef27 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 11 Sep 2009 05:22:46 +0000 Subject: * configure.in (debugflags): use gdb by default on linux and darwin. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 ++++- configure.in | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index af143ffe6..453ac9e76 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ -Fri Sep 11 14:19:27 2009 Nobuyoshi Nakada +Fri Sep 11 14:22:45 2009 Nobuyoshi Nakada + + * configure.in (debugflags): use gdb by default on linux and + darwin. * configure.in (XLDFLAGS): keep ARCHFILE macro on AIX. diff --git a/configure.in b/configure.in index a858fedc8..973256a14 100644 --- a/configure.in +++ b/configure.in @@ -239,13 +239,17 @@ fi AC_PROG_CC AC_PROG_CXX AC_PROG_GCC_TRADITIONAL -test $ac_cv_prog_cc_g = yes && : ${debugflags=-g} if test "$GCC" = yes; then linker_flag=-Wl, : ${optflags=-O3} + case "$target_os" in + when(linux*|darwin*) + : ${debugflags=-ggdb};; + esac else linker_flag= fi +test $ac_cv_prog_cc_g = yes && : ${debugflags=-g} RUBY_PROG_GNU_LD RUBY_CPPOUTFILE -- cgit