From: Steinar H. Gunderson Date: Mon, 29 Aug 2016 22:08:50 +0000 (+0200) Subject: Link the protobuf stuff statically. X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=77a1d68bbd16929e8eb2d8fec105118dfe888d59;ds=inline Link the protobuf stuff statically. --- 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)