Why ain't the first answer.. use a bazel provided tool chain instead of using system toolchains? This article is totally mad.
You can have every developer cross-compile from a different os/cpu platform
And, I always prefer to actually pick my glibc independently from the host os and ship it with the binary (generally in an OCI image). This way you can patch/update the host without breaking the service.
But what about any tools compiled from source and used during the build? Those can also suffer from these issues.