VANYA
I had configured with ./configure --disable-shared --enable-static --prefix=/d/devD/gdb-16.3/local64
and invoked make as follows
make -j7 CFLAGS="-static -static-libgcc -static-libstdc++ -Wl,-Bstatic -ldl -lexpat -lgcc_s -lgmp -liconv -lintl -llzma -lmpfr -ltermcap -lncurses -lstdc++ -lpthread -lzstd -Wl,-Bdynamic -O2" CPPFLAGS="-static -static-libgcc -static-libstdc++ -Wl,-Bstatic -ldl -lexpat -lgcc_s -lgmp -liconv -lintl -llzma -lmpfr -ltermcap -lncurses -lstdc++ -lpthread -lzstd -Wl,-Bdynamic -O2"
Note: I don't think that -Wl,-Bstatic does anything useful, instead, I renamed the relevant import libraries like libgmp.dll.a to something like
---libgmp.dll.a so that the linker would use the static versions
but just a short time ago I did ./configure --disable-shared --enable-static
--without-python --prefix=/d/devD/gdb-16.3/local64
with the same make statement as above and the 64-bit version has to the best of my knowledge the following dependencies: 6 Windows dlls ADVAPI32.dll, bcrypt.dll, KERNEL32.dll, msvcrt.dll, USER32.dll, WS2_32.dll
and 5 gnu dlls libwinpthread-1.dll, libncursesw6.dll, libtermcap-0.dll, libintl-8.dll, libiconv-2.dll
total size 15,990,206 bytes
./configure --help didn't mention python but it did mention --without-PACKAGE so I tried it with --without-python and it worked
if anyone wishes to try it you may get it from
https://u.pcloud.link/publink/show?code ... 1748MnVtMk
it would help me to determine if there are anymore dlls that need to be included, you never know if you have software installed and is on the PATH that has some dll that is common with gdb