Is there a way to statically link in all those submodule libraries in libgrpc.a

37 views
Skip to first unread message

Jason Zhang

unread,
Apr 21, 2022, 4:38:16 PM4/21/22
to grpc.io

For the version of grpc (1.38 or later) we are using, there are a bunch of submodule libraries such as  libabsl*.a, libgpr.a, libupb.a, libaddress_sorting.a etc...
We are trying to create a static linked libgrpc.a and have all needed submodule libraries in it. So our main app only need to link to libgrpc.a instead of a bunch of libraries.


Is there an easy way to do it? Like some sort of hidden flag to use?

Looks like by default, none of the needed submodule libraries are in the libgrpc.a.

Thank you!

Reply all
Reply to author
Forward
0 new messages