mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-22 06:07:49 +00:00
Supply --disable-build-with-cxx instead of requiring C++
... when building native GDB/gdbserver. Suggested by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
parent
df555a65db
commit
5920157fdd
@ -3,8 +3,8 @@
|
||||
config GDB_GDBSERVER
|
||||
bool
|
||||
prompt "gdbserver"
|
||||
default y
|
||||
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.
|
||||
|
||||
|
@ -5,7 +5,6 @@ config GDB_NATIVE
|
||||
prompt "Native gdb"
|
||||
depends on ! BARE_METAL
|
||||
depends on ! BACKEND
|
||||
depends on CC_LANG_CXX || !GDB_7_12_or_later
|
||||
select EXPAT_TARGET
|
||||
select NCURSES_TARGET
|
||||
help
|
||||
|
@ -179,6 +179,9 @@ do_debug_gdb_build() {
|
||||
|
||||
native_extra_config=("${extra_config[@]}")
|
||||
|
||||
# We may not have C++ language configured for target
|
||||
native_extra_config+=("--disable-build-with-cxx")
|
||||
|
||||
# GDB on Mingw depends on PDcurses, not ncurses
|
||||
if [ "${CT_MINGW32}" != "y" ]; then
|
||||
native_extra_config+=("--with-curses")
|
||||
@ -293,6 +296,9 @@ do_debug_gdb_build() {
|
||||
|
||||
gdbserver_extra_config=("${extra_config[@]}")
|
||||
|
||||
# We may not have C++ language configured for target
|
||||
gdbserver_extra_config+=("--disable-build-with-cxx")
|
||||
|
||||
if [ "${CT_GDB_GDBSERVER_HAS_IPA_LIB}" = "y" ]; then
|
||||
if [ "${CT_GDB_GDBSERVER_BUILD_IPA_LIB}" = "y" ]; then
|
||||
gdbserver_extra_config+=( --enable-inprocess-agent )
|
||||
|
Loading…
Reference in New Issue
Block a user