From 6a47d25cc0f2f8bef3dc6d31911c51bcb940fe4b Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 30 Aug 2016 00:08:50 +0200 Subject: [PATCH] Link the protobuf stuff statically. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 1a64e3d0..525a01e2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -550,7 +550,7 @@ GRPC_CPP_PLUGIN_PATH ?= `which $(GRPC_CPP_PLUGIN)` %.pb.h %.pb.cc: %.proto $(PROTOC) -I $(PROTOS_PATH) --cpp_out=. $< -LDFLAGS += -lprotobuf -lgrpc++_unsecure -lgrpc_unsecure -lgrpc +LDFLAGS += -Wl,-Bstatic -Wl,-\( -lprotobuf -lgrpc++_unsecure -lgrpc_unsecure -lgrpc -lz -Wl,-\) -Wl,-Bdynamic -ldl client: $(CLIOBJS) $(CXX) -o $@ $(CLIOBJS) $(LDFLAGS) -- 2.39.2