aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--configure.in6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index af143ffe68..453ac9e76a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
-Fri Sep 11 14:19:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Sep 11 14:22:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * 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 a858fedc81..973256a142 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