build: tinker with gold linker detection
build: tinker with gold linker detection

Our precommit builds have the "optional and buggy" gold, yet were dropping
tcmalloc despite not actually using gold. This patch adjusts the detection
to allow for gold to be used in such situations.

Change-Id: I69fc0ed78731d7ce452e751bab414ae98284886a
Reviewed-on: http://gerrit.cloudera.org:8080/14481
Tested-by: Adar Dembo <866ca730bfc7f544e3ebce604ceeba4879f23df0@cloudera.com>
Reviewed-by: Alexey Serbin <864f6b82bd94e8dda64141d4274519ee66e0102e@cloudera.com>

helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu,helifu/kudu