Cgo: choose archive by extension (#898)
Cgo: choose archive by extension (#898)

This fixed an error that occurred when cc_library generated multiple
archive files (.lo and .pic.lo) in some configurations (-c
opt). Rather than requiring a single file, _cgo_collect_info will now
choose a file based on extension.

Fixes #896
bazelbuild/rules_go,bazelbuild/rules_go,Xjs/rules_go,Xjs/rules_go,bazelbuild/rules_go,bazelbuild/rules_go,Xjs/rules_go,Xjs/rules_go,bazelbuild/rules_go,Xjs/rules_go