]> git.sesse.net Git - stockfish/blobdiff - src/Makefile
Link the protobuf stuff statically.
[stockfish] / src / Makefile
index 1a64e3d0a03603eea11cbe21730077109f494495..525a01e21fcdab009886f02b41f444c0628c6627 100644 (file)
@@ -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)