cc_configure: Add -B to compiler flag too
cc_configure: Add -B to compiler flag too

On some target platform gcc invokes external tools during compilation, see #1152. Also support absolute path when looking for gcc.

This needs to be cherry-picked to fix #1177.

--
MOS_MIGRATED_REVID=120581887

juhalindfors/bazel-patches,twitter-forks/bazel,Asana/bazel,dslomov/bazel-windows,dropbox/bazel,mikelalcon/bazel,katre/bazel,variac/bazel,mikelikespie/bazel,kchodorow/bazel,werkt/bazel,bazelbuild/bazel,mrdomino/bazel,mbrukman/bazel,safarmer/bazel,kchodorow/bazel-1,safarmer/bazel,damienmg/bazel,dropbox/bazel,juhalindfors/bazel-patches,meteorcloudy/bazel,aehlig/bazel,Asana/bazel,hermione521/bazel,perezd/bazel,spxtr/bazel,kchodorow/bazel-1,twitter-forks/bazel,mrdomino/bazel,aehlig/bazel,zhexuany/bazel,kchodorow/bazel-1,hermione521/bazel,snnn/bazel,ulfjack/bazel,mikelalcon/bazel,damienmg/bazel,dslomov/bazel-windows,mikelikespie/bazel,twitter-forks/bazel,aehlig/bazel,katre/bazel,ButterflyNetwork/bazel,juhalindfors/bazel-patches,bazelbuild/bazel,iamthearm/bazel,dslomov/bazel,bazelbuild/bazel,ulfjack/bazel,perezd/bazel,dropbox/bazel,spxtr/bazel,cushon/bazel,dslomov/bazel-windows,LuminateWireless/bazel,iamthearm/bazel,snnn/bazel,variac/bazel,kchodorow/bazel-1,abergmeier-dsfishlabs/bazel,mikelikespie/bazel,katre/bazel,LuminateWireless/bazel,akira-baruah/bazel,safarmer/bazel,dslomov/bazel,werkt/bazel,UrbanCompass/bazel,mikelalcon/bazel,mikelalcon/bazel,davidzchen/bazel,meteorcloudy/bazel,dropbox/bazel,hermione521/bazel,ulfjack/bazel,katre/bazel,akira-baruah/bazel,mbrukman/bazel,meteorcloudy/bazel,UrbanCompass/bazel,perezd/bazel,dslomov/bazel,davidzchen/bazel,juhalindfors/bazel-patches,kchodorow/bazel,ButterflyNetwork/bazel,mbrukman/bazel,twitter-forks/bazel,zhexuany/bazel,dslomov/bazel-windows,kchodorow/bazel-1,mrdomino/bazel,abergmeier-dsfishlabs/bazel,perezd/bazel,twitter-forks/bazel,Asana/bazel,LuminateWireless/bazel,safarmer/bazel,kchodorow/bazel,werkt/bazel,abergmeier-dsfishlabs/bazel,dslomov/bazel,akira-baruah/bazel,ulfjack/bazel,iamthearm/bazel,aehlig/bazel,twitter-forks/bazel,ButterflyNetwork/bazel,dslomov/bazel-windows,hermione521/bazel,Asana/bazel,damienmg/bazel,ulfjack/bazel,mrdomino/bazel,damienmg/bazel,dropbox/bazel,variac/bazel,damienmg/bazel,akira-baruah/bazel,perezd/bazel,variac/bazel,aehlig/bazel,twitter-forks/bazel,snnn/bazel,Asana/bazel,anupcshan/bazel,variac/bazel,davidzchen/bazel,Asana/bazel,kchodorow/bazel,LuminateWireless/bazel,LuminateWireless/bazel,iamthearm/bazel,kchodorow/bazel-1,spxtr/bazel,perezd/bazel,juhalindfors/bazel-patches,bazelbuild/bazel,snnn/bazel,iamthearm/bazel,kchodorow/bazel,mbrukman/bazel,dslomov/bazel,snnn/bazel,spxtr/bazel,davidzchen/bazel,davidzchen/bazel,ButterflyNetwork/bazel,dslomov/bazel-windows,mikelikespie/bazel,abergmeier-dsfishlabs/bazel,mrdomino/bazel,aehlig/bazel,LuminateWireless/bazel,katre/bazel,UrbanCompass/bazel,dslomov/bazel,akira-baruah/bazel,mikelalcon/bazel,damienmg/bazel,mrdomino/bazel,spxtr/bazel,meteorcloudy/bazel,aehlig/bazel,meteorcloudy/bazel,mikelikespie/bazel,bazelbuild/bazel,abergmeier-dsfishlabs/bazel,davidzchen/bazel,zhexuany/bazel,anupcshan/bazel,davidzchen/bazel,spxtr/bazel,zhexuany/bazel,ulfjack/bazel,cushon/bazel,dslomov/bazel,iamthearm/bazel,perezd/bazel,juhalindfors/bazel-patches,zhexuany/bazel,akira-baruah/bazel,ButterflyNetwork/bazel,cushon/bazel,abergmeier-dsfishlabs/bazel,mikelikespie/bazel,kchodorow/bazel,UrbanCompass/bazel,bazelbuild/bazel,cushon/bazel,ButterflyNetwork/bazel,UrbanCompass/bazel,spxtr/bazel,hermione521/bazel,meteorcloudy/bazel,mbrukman/bazel,variac/bazel,Asana/bazel,ulfjack/bazel,anupcshan/bazel,variac/bazel,mikelalcon/bazel,UrbanCompass/bazel,cushon/bazel,kchodorow/bazel,safarmer/bazel,snnn/bazel,katre/bazel,damienmg/bazel,mbrukman/bazel,juhalindfors/bazel-patches,zhexuany/bazel,hermione521/bazel,werkt/bazel,snnn/bazel,werkt/bazel,cushon/bazel,anupcshan/bazel,anupcshan/bazel,safarmer/bazel,dropbox/bazel,meteorcloudy/bazel,werkt/bazel,anupcshan/bazel