aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/build/debug/300-gdb.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index de8d1b14..73c56c9e 100644
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -122,6 +122,14 @@ do_debug_gdb_build()
native_extra_config+=("--program-prefix=")
+ # Starting from GDB 11.x, gmp is needed as a dependency to build full
+ # gdb. And if target GMP gets built, explicitly point to installed library,
+ # as otherwise host library might be attempted to be used for target binary
+ # linkage.
+ if [ "${CT_GMP_TARGET}" = "y" ]; then
+ native_extra_config+=("--with-libgmp-prefix=${CT_SYSROOT_DIR}")
+ fi
+
# gdbserver gets enabled by default with gdb
# since gdbserver was promoted to top-level
if [ "${CT_GDB_GDBSERVER_TOPLEVEL}" = "y" ]; then