瀏覽代碼

gdb: unbreak 7.12 target gdb/gdbserver build without C++ support

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>
Peter Korsgaard 8 年之前
父節點
當前提交
ba8338060b
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      package/gdb/gdb.mk

+ 6 - 0
package/gdb/gdb.mk

@@ -107,6 +107,12 @@ ifeq ($(BR2_arc),y)
 GDB_CONF_OPTS += --disable-build-with-cxx
 GDB_CONF_OPTS += --disable-build-with-cxx
 endif
 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)
 ifeq ($(BR2_PACKAGE_GDB_TUI),y)
 GDB_CONF_OPTS += --enable-tui
 GDB_CONF_OPTS += --enable-tui
 else
 else