diff options
author | Alexey Neyman <stilor@att.net> | 2017-06-04 22:27:02 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-06-04 23:23:09 -0700 |
commit | 72a5a1d6de43503579cb77daacdf17a77a315c03 (patch) | |
tree | 2bb8787faf30ba6ea4838f5e8c5d1a4ba5850948 /scripts/build | |
parent | ef1ff2600db572b05f812c638a950f5be31aa6c9 (diff) | |
download | crosstool-ng-72a5a1d6de43503579cb77daacdf17a77a315c03.tar.gz crosstool-ng-72a5a1d6de43503579cb77daacdf17a77a315c03.tar.bz2 crosstool-ng-72a5a1d6de43503579cb77daacdf17a77a315c03.zip |
Add GDB 8.0 ...
... which now requires C++.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build')
-rw-r--r-- | scripts/build/debug/300-gdb.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index 68510e13..98ef5e5d 100644 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -190,6 +190,7 @@ do_debug_gdb_build() { CT_EndStep fi + # TBD combine GDB native and gdbserver backends, build either or both in a single pass. if [ "${CT_GDB_NATIVE}" = "y" ]; then local -a native_extra_config @@ -198,7 +199,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") + if [ "${GDB_TARGET_DISABLE_CXX_BUILD}" = "y" ]; then + native_extra_config+=("--disable-build-with-cxx") + fi # GDB on Mingw depends on PDcurses, not ncurses if [ "${CT_MINGW32}" != "y" ]; then @@ -317,7 +320,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 [ "${GDB_TARGET_DISABLE_CXX_BUILD}" = "y" ]; then + gdbserver_extra_config+=("--disable-build-with-cxx") + fi if [ "${CT_GDB_GDBSERVER_HAS_IPA_LIB}" = "y" ]; then if [ "${CT_GDB_GDBSERVER_BUILD_IPA_LIB}" = "y" ]; then |