Skip gcc build configuration options mentioning gold in ld.gold detection
Skip gcc build configuration options mentioning gold in ld.gold detection

Fixes bazelbuild/bazel#9392

rules_cc version of this change is in https://github.com/bazelbuild/rules_cc/pull/48.

RELNOTES: None.
PiperOrigin-RevId: 283025854

dslomov/bazel-windows,katre/bazel,werkt/bazel,davidzchen/bazel,ulfjack/bazel,werkt/bazel,cushon/bazel,akira-baruah/bazel,twitter-forks/bazel,dslomov/bazel-windows,twitter-forks/bazel,bazelbuild/bazel,safarmer/bazel,twitter-forks/bazel,twitter-forks/bazel,akira-baruah/bazel,davidzchen/bazel,bazelbuild/bazel,katre/bazel,werkt/bazel,cushon/bazel,safarmer/bazel,twitter-forks/bazel,ulfjack/bazel,dslomov/bazel,perezd/bazel,dslomov/bazel-windows,dslomov/bazel-windows,dslomov/bazel-windows,davidzchen/bazel,katre/bazel,perezd/bazel,dslomov/bazel,bazelbuild/bazel,safarmer/bazel,dslomov/bazel,ButterflyNetwork/bazel,twitter-forks/bazel,bazelbuild/bazel,ButterflyNetwork/bazel,perezd/bazel,meteorcloudy/bazel,cushon/bazel,ButterflyNetwork/bazel,safarmer/bazel,dslomov/bazel,ButterflyNetwork/bazel,cushon/bazel,perezd/bazel,cushon/bazel,dslomov/bazel,meteorcloudy/bazel,akira-baruah/bazel,meteorcloudy/bazel,dslomov/bazel,ulfjack/bazel,davidzchen/bazel,werkt/bazel,davidzchen/bazel,bazelbuild/bazel,akira-baruah/bazel,meteorcloudy/bazel,dslomov/bazel-windows,akira-baruah/bazel,werkt/bazel,ulfjack/bazel,ulfjack/bazel,safarmer/bazel,ulfjack/bazel,katre/bazel,perezd/bazel,ulfjack/bazel,bazelbuild/bazel,akira-baruah/bazel,perezd/bazel,ButterflyNetwork/bazel,katre/bazel,davidzchen/bazel,perezd/bazel,dslomov/bazel,meteorcloudy/bazel,katre/bazel,davidzchen/bazel,meteorcloudy/bazel,meteorcloudy/bazel,cushon/bazel,twitter-forks/bazel,ButterflyNetwork/bazel,safarmer/bazel,werkt/bazel