Hello,
I have 2 .so files, say a.so and b.so and I'm using cgo with bazel to invoke C functions from Go code. Using ldd to inspect the dependency of the generated binary, I got something like this.
bazel-out/k8-fastbuild-ST-4a519fd6d3e4/bin/_solib_k8/<path-to-a.so>
b.so => /usr/local/home/<username>/<repro>/<path-to-build-target>/../../../../../bazel-bin/<path-to-b.so>
The multiple ../ in the second symlink makes the second path same as
b.so => /usr/local/home/<username>/<repro>/bazel-bin/_solib_k8/<path-to-b.so>
It looks like b.so is correctly linked but not a.so although they're both in the same path in the bundle .tar.gz that is imported via cc_library. Did I do something incorrect here?
Thanks,
Tuan