Keep gdbtk object files in their source directory.
Link insight using gdb objects rather than gdb static library.
diff -Naurp a/gdb/Makefile.in b/gdb/Makefile.in
---- a/gdb/Makefile.in 2023-12-15 11:51:38.010745506 +0100
-+++ b/gdb/Makefile.in 2023-12-15 11:52:18.765108460 +0100
+--- a/gdb/Makefile.in 2024-05-17 14:06:51.020119820 +0200
++++ b/gdb/Makefile.in 2024-05-17 14:10:45.483201123 +0200
@@ -554,15 +554,15 @@ GDBTK_LIBRARY = $(datadir)/insight$(GDBT
GDBTK_SRC_DIR = @GDBTK_SRC_DIR@
installcheck:
-@@ -2174,6 +2172,7 @@ test-cp-name-parser$(EXEEXT): test-cp-na
+@@ -2163,6 +2161,7 @@ uninstall: force $(CONFIG_UNINSTALL)
+ # computing the list of source files from the list of object files.
INIT_FILES_FILTER_OUT = \
- cp-name-parser.o \
+ gdbres.o \
init.o \
version.o \
xml-builtin.o \
-@@ -2644,10 +2643,10 @@ clean-gdbtk:
+@@ -2634,10 +2633,10 @@ clean-gdbtk:
rm -f insight$(EXEEXT)
# Removing the old gdb first works better if it is running, at least on SunOS.
$(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES)
gdbres.o: $(srcdir)/gdbtk/gdb.rc $(srcdir)/gdbtk/gdbtool.ico
-@@ -2682,7 +2681,7 @@ endif
+@@ -2672,7 +2671,7 @@ endif
# A list of all the objects we might care about in this build, for
# dependency tracking.
--all_object_files = gdb.o $(LIBGDB_OBS) gdbtk-main.o \
-+all_object_files = gdb.o $(LIBGDB_OBS) gdbtk/generic/gdbtk-main.o \
- test-cp-name-parser.o
+-all_object_files = gdb.o $(LIBGDB_OBS) gdbtk-main.o
++all_object_files = gdb.o $(LIBGDB_OBS) gdbtk/generic/gdbtk-main.o
# All the .deps files to include.
+ all_deps_files = $(foreach dep,$(patsubst %.o,%.Po,$(all_object_files)),\