The shared build only of gdb is actually not supported.
When --disable-static is given to the gdb's main configure script,
it also disable the static build of bundled libraries like bfd, readline
and opcodes, which must be build statically.
Force the static build of bundled libraries by adding --enable-static in
GDB_CONF_OPTS.