From patchwork Mon Apr 18 17:27:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 11790 Received: (qmail 79395 invoked by alias); 18 Apr 2016 17:27:56 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 79329 invoked by uid 89); 18 Apr 2016 17:27:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1730 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 18 Apr 2016 17:27:49 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6420AC01AA24 for ; Mon, 18 Apr 2016 17:27:48 +0000 (UTC) Received: from cascais.lan (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u3IHRkZj011663 for ; Mon, 18 Apr 2016 13:27:47 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 1/1] Build GDB as a C++ program by default Date: Mon, 18 Apr 2016 18:27:46 +0100 Message-Id: <1461000466-31668-2-git-send-email-palves@redhat.com> In-Reply-To: <1461000466-31668-1-git-send-email-palves@redhat.com> References: <1461000466-31668-1-git-send-email-palves@redhat.com> 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-18 Pedro Alves * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Default to yes unless building on some hosts. * configure: Renegerate. gdb/gdbserver/ChangeLog: 2016-04-18 Pedro Alves * configure: Renegerate. --- gdb/build-with-cxx.m4 | 2 +- gdb/configure | 2 +- gdb/gdbserver/configure | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/build-with-cxx.m4 b/gdb/build-with-cxx.m4 index 6eb9143..6077278 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 8c2ec0f..3cf95e7 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/configure b/gdb/gdbserver/configure index 2082335..746218e 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