protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

Build both static and dynamic libraries

Open koudonojinchuu opened this issue 3 years ago • 1 comments

I use protobuf on Linux, where it is a dependency of many of my distro's packages (in .so form), but I'm also working (for my job) with the statically linked .a form (this is a requirement that I cannot change).

Currently it is cumbersome to have both forms available on the system, as I need to launch cmake twice with a different protobuf_BUILD_SHARED_LIBS option value.

Would it be possible to allow building both in only one go?

koudonojinchuu avatar Aug 05 '22 11:08 koudonojinchuu

https://alexreinking.com/blog/building-a-dual-shared-and-static-library-with-cmake.html describes the contortions needed, but its focus is really on making it ergonomic to use one or the other, so you still end up building and installing twice anyway.

junyer avatar Sep 01 '22 19:09 junyer

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago.

github-actions[bot] avatar Jan 07 '24 10:01 github-actions[bot]

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please reopen it.

This issue was closed and archived because there has been no new activity in the 14 days since the inactive label was added.

github-actions[bot] avatar Jan 22 '24 10:01 github-actions[bot]