From a23585089d7ba710b238d3d1ab3d34320afa48d0 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 20 Apr 2016 23:20:15 +0100 Subject: [PATCH] Build GDB as a C++ program by default This makes --enable-build-with-cxx be "yes" by default. One must now configure with --enable-build-with-cxx=no in order to build with a C compiler. gdb/ChangeLog: 2016-04-20 Pedro Alves * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes. * configure: Renegerate. gdb/gdbserver/ChangeLog: 2016-04-20 Pedro Alves * configure: Renegerate. --- gdb/ChangeLog | 5 +++++ gdb/build-with-cxx.m4 | 2 +- gdb/configure | 2 +- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/configure | 2 +- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9dec80184ed..30a306c6363 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2016-04-20 Pedro Alves + + * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes. + * configure: Renegerate. + 2016-04-20 Pedro Alves * darwin-nat.c (darwin_decode_message): Use gdb_signal_from_host. diff --git a/gdb/build-with-cxx.m4 b/gdb/build-with-cxx.m4 index 6eb91434791..6077278a9e8 100644 --- a/gdb/build-with-cxx.m4 +++ b/gdb/build-with-cxx.m4 @@ -29,7 +29,7 @@ AC_DEFUN([GDB_AC_BUILD_WITH_CXX], *) AC_MSG_ERROR([bad value $enableval for --enable-build-with-cxx]) ;; esac], - [enable_build_with_cxx=no]) + [enable_build_with_cxx=yes]) if test "$enable_build_with_cxx" = "yes"; then COMPILER='$(CXX)' diff --git a/gdb/configure b/gdb/configure index 8c2ec0f78d5..3cf95e76998 100755 --- a/gdb/configure +++ b/gdb/configure @@ -4965,7 +4965,7 @@ if test "${enable_build_with_cxx+set}" = set; then : as_fn_error "bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;; esac else - enable_build_with_cxx=no + enable_build_with_cxx=yes fi diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index c2901305b16..029205d3b86 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2016-04-20 Pedro Alves + + * configure: Renegerate. + 2016-04-20 Yao Qi * linux-aarch32-low.c: Include "arch/arm-linux.h". diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure index 208233571f5..746218e3047 100755 --- a/gdb/gdbserver/configure +++ b/gdb/gdbserver/configure @@ -4784,7 +4784,7 @@ if test "${enable_build_with_cxx+set}" = set; then : as_fn_error "bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;; esac else - enable_build_with_cxx=no + enable_build_with_cxx=yes fi -- 2.30.2