Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] gdb: unbreak 7.12 target gdb/gdbserver build without C++ support
@ 2017-01-22 19:17 Peter Korsgaard
  2017-01-22 19:17 ` [Buildroot] [PATCH 2/2] gdb: bump 7.12 series to 7.12.1 Peter Korsgaard
  2017-01-23 22:07 ` [Buildroot] [PATCH 1/2] gdb: unbreak 7.12 target gdb/gdbserver build without C++ support Peter Korsgaard
  0 siblings, 2 replies; 4+ messages in thread
From: Peter Korsgaard @ 2017-01-22 19:17 UTC (permalink / raw)
  To: buildroot

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 <peter@korsgaard.com>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-23 22:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-22 19:17 [Buildroot] [PATCH 1/2] gdb: unbreak 7.12 target gdb/gdbserver build without C++ support Peter Korsgaard
2017-01-22 19:17 ` [Buildroot] [PATCH 2/2] gdb: bump 7.12 series to 7.12.1 Peter Korsgaard
2017-01-23 22:08   ` Peter Korsgaard
2017-01-23 22:07 ` [Buildroot] [PATCH 1/2] gdb: unbreak 7.12 target gdb/gdbserver build without C++ support Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox