diff options
-rw-r--r-- | config/debug/gdb.in.cross | 1 | ||||
-rw-r--r-- | config/debug/gdb.in.gdbserver | 1 | ||||
-rw-r--r-- | configure.ac | 4 |
3 files changed, 4 insertions, 2 deletions
diff --git a/config/debug/gdb.in.cross b/config/debug/gdb.in.cross index fb993c9..945f8eb 100644 --- a/config/debug/gdb.in.cross +++ b/config/debug/gdb.in.cross @@ -7,7 +7,6 @@ config GDB_CROSS bool prompt "Cross-gdb" default y - select GDB_GDBSERVER if ! BARE_METAL select EXPAT_NEEDED select NCURSES_NEEDED help diff --git a/config/debug/gdb.in.gdbserver b/config/debug/gdb.in.gdbserver index 8d8fce5..feb3a0d 100644 --- a/config/debug/gdb.in.gdbserver +++ b/config/debug/gdb.in.gdbserver @@ -4,6 +4,7 @@ config GDB_GDBSERVER bool prompt "gdbserver" depends on ! BARE_METAL + depends on CC_LANG_CXX || !GDB_7_12_or_later help Build and install a gdbserver for the target, to run on the target. diff --git a/configure.ac b/configure.ac index e0cd202..ba24711 100644 --- a/configure.ac +++ b/configure.ac @@ -186,8 +186,10 @@ AC_PROG_LN_S #-------------------------------------------------------------------- # A bunch of boring tests... #-------------------------------------------------------------------- +# Modern GCC/GDB releases require C++ support in the compiler AC_PROG_CC -AS_IF([test -z "$CC"], +AC_PROG_CXX +AS_IF([test -z "$CC" -o -z "$CXX"], [AC_MSG_ERROR([no suitable compiler found])]) AC_PROG_CPP |