Comment Comment by emidln I don't know what you're talking about. This is trivial to accomplish using `linkstatic` as documented on `cc_library` and `cc_binary`. I uploaded a demo to github here: https://github.com/emidln/bazel_static_dynamic_c_demo/blob/m...Try it out like this: # you'll need a c compiler installed, xcode is fine on macos git clone https://github.com/emidln/bazel_static_dynamic_c_demo cd bazel_static_dynamic_c_demo bazel run //:foo ldd bazel-bin/foo # otool -L bazel-bin/foo if you're on MacOS parent emidln 3 years ago
Try it out like this: