The gdbserver is unused in crash-utility, but it
is always built by default during crash building.
Let's disable gdbserver building to save some time.
There are several advantages, for example:
[1] speed up crash building and save time
[2] avoid some compilation issues
[3] the following cross compile and ci will benefit
from this.
In addition, this is harmless for the old compilation
methods.
Signed-off-by: Lianbo Jiang <lijiang(a)redhat.com>
---
gdb-10.2.patch | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/gdb-10.2.patch b/gdb-10.2.patch
index d22f2d6d75bc..5b8e567503fb 100644
--- a/gdb-10.2.patch
+++ b/gdb-10.2.patch
@@ -16321,3 +16321,15 @@ exit 0
rl_sigwinch_handler (int sig)
{
SigHandler *oh;
+--- gdb-10.2/configure.orig
++++ gdb-10.2/configure
+@@ -3488,6 +3488,9 @@ case "${target}" in
+ ;;
+ esac
+
++#disable gdbserver build in crash-utility
++enable_gdbserver=no
++
+ # Only allow gdbserver on some systems.
+ if test -d ${srcdir}/gdbserver; then
+ if test x$enable_gdbserver = x; then
--
2.47.1