]> git.sesse.net Git - stockfish/commitdiff
Link the protobuf stuff statically.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 29 Aug 2016 22:08:50 +0000 (00:08 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 26 Dec 2018 09:43:37 +0000 (10:43 +0100)
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=. $<
 
 %.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)
 
 client: $(CLIOBJS)
        $(CXX) -o $@ $(CLIOBJS) $(LDFLAGS)