A new gdb version was released a few days ago. Upgrade to the release tag, and apply the proper fixes in order to allow static compilation.