如何在Go中使用bazel C

I have a project with multiple recursive dependencies. I want to create a single fat static library in order to use this library in go with cgo. Unfortantly bazel has an issue with that.

linkstatic = True

does not create a static library with all dependencies.

How can I integrate a bazel C project in Go with cgo?