If you're just trying to build static binaries, have you considered just installing gcc from source into /usr/local ?