How to link a static lib to grpc Makefile?

9 views
Skip to first unread message

xia rui

unread,
Aug 21, 2019, 12:24:12 AM8/21/19
to grpc.io
Hello, everyone.
I am trying to use a third party lib in grpc. I have installed the static lib to linux OS with `make install`. Now I need to add `-llog4cpp -pthread` to the make command of grpc.

I have tried to add `-llog4cpp -pthread` to `LDFLAGS` in `build.yaml` and regenerate `Makefile`. But, the grpc code actually does not link to the static lib.

So where is the correct position to add `-llog4cpp -pthread` in the grpc source code

Thank you for your time.

Best wishes,
Xia Rui
Reply all
Reply to author
Forward
0 new messages