Disable ld.gold
It prints this warning during gtk-doc generation:
/usr/bin/ld.gold: warning: /usr/lib/gcc/x86_64-redhat-linux/11/../../../../lib64/Scrt1.o: unknown program property type 0xc0008002 in .note.gnu.property section
And that causes the entire build to fail, because we do not allow
warnings during gtk-doc generation.