From: Steinar H. Gunderson Date: Sat, 19 Nov 2016 13:42:02 +0000 (+0100) Subject: More build tweaks. X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=7019cc8e2c5fa4cb347bb531ebae02f10228ff52 More build tweaks. --- diff --git a/src/Makefile b/src/Makefile index 525a01e2..3f9c7a7d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -283,7 +283,7 @@ endif ### 3.3 Optimization ifeq ($(optimize),yes) - CXXFLAGS += -O3 + CXXFLAGS += -O3 -g ifeq ($(comp),gcc) ifeq ($(OS), Android) @@ -550,7 +550,8 @@ GRPC_CPP_PLUGIN_PATH ?= `which $(GRPC_CPP_PLUGIN)` %.pb.h %.pb.cc: %.proto $(PROTOC) -I $(PROTOS_PATH) --cpp_out=. $< -LDFLAGS += -Wl,-Bstatic -Wl,-\( -lprotobuf -lgrpc++_unsecure -lgrpc_unsecure -lgrpc -lz -Wl,-\) -Wl,-Bdynamic -ldl +#LDFLAGS += -Wl,-Bstatic -Wl,-\( -lprotobuf -lgrpc++_unsecure -lgrpc_unsecure -lgrpc -lz -Wl,-\) -Wl,-Bdynamic -ldl +LDFLAGS += /usr/local/lib/libprotobuf.a /usr/local/lib/libgrpc++_unsecure.a /usr/local/lib/libgrpc_unsecure.a /usr/local/lib/libgrpc.a -ldl -lz client: $(CLIOBJS) $(CXX) -o $@ $(CLIOBJS) $(LDFLAGS)