From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Sun, 22 Jan 2017 20:17:09 +0100 Subject: [Buildroot] [PATCH 1/2] gdb: unbreak 7.12 target gdb/gdbserver build without C++ support Message-ID: <20170122191710.22600-1-peter@korsgaard.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net gdb 7.12+ by default builds with a C++ compiler, which naturally doesn't work when we don't have C++ support in the toolchain. Fix it by passing --disable-build-with-cxx for such setups. Signed-off-by: Peter Korsgaard --- package/gdb/gdb.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/gdb/gdb.mk b/package/gdb/gdb.mk index ea27d0c6e..606f1f960 100644 --- a/package/gdb/gdb.mk +++ b/package/gdb/gdb.mk @@ -107,6 +107,12 @@ ifeq ($(BR2_arc),y) GDB_CONF_OPTS += --disable-build-with-cxx endif +# gdb 7.12+ by default builds with a C++ compiler, which doesn't work +# when we don't have C++ support in the toolchain +ifneq ($(BR2_INSTALL_LIBSTDCPP),y) +GDB_CONF_OPTS += --disable-build-with-cxx +endif + ifeq ($(BR2_PACKAGE_GDB_TUI),y) GDB_CONF_OPTS += --enable-tui else -- 2.11.0